I'm creating a confirm delete like popup with an iframe to use along with a gridview. When you click delete on a gridview row, the iframe shows up and asks if you would like to delete the associated image as well from the server. It works perfectly the first time I delete a row. After that whenever I click select or edit on a new row, it calls the rowdeleting event from the last deleted entry every time. I'm stumped.Here's the Sub:
'// Event that Occurs when the Delete Button is Clicked //' Protected Sub Confirm_Delete(ByVal sender As Object, ByVal e As GridViewDeleteEventArgs) Handles GridView1.RowDeleting Dim file_name As Array = Split(GridView1.Rows.Item(e.rowIndex).Cells.Item(10).Text, "/") If file_name.getLength(0) = 1 Then file_name = Split(GridView1.Rows.Item(e.rowIndex).Cells.Item(10).Text, "") End If Dim fn As String = file_name(file_name.getLength(0) -1) fn = replace(fn, ",", "%2C") fn = replace(fn, " ", "%20") Dim url As String = Me.Master.get_root_url & "CrimeBulletinProject/ConfirmDelete.asp?img_list=" & fn & "~!" confirm_delete_frame.Attributes.Add("src", url) confirm_delete_frame.Attributes.Add("style", "display: block; left: 50%") End Sub
I have a WCF service than in my development and production environments works without any trouble but in my test environment it will occasionally throw a CommunicationObjectFaultedException. This has been very difficult to track down but it seems to happen only after going a long time with out calling it.client is a web applictaion running on two load balanced servers, the WCF service is hosted in IIS and running on two load balanced servers.There is no difference in the WCF configuration between the three environments so I believe there must be something different in the way the servers are set up. What are some things I can ask my server admins to check? (I don't have proper access to these servers to check stuff myself).
I am working on an ASP.NET web app using Visual Studio 2008 and a third-party library.
Things are fine in my development environment. Things are also good if the web app is deployed in Debug configuration. However, when it is deployed in Release mode, SerializationExceptions appear intermittently, breaking other functionality.
In the Windows event log, the following error can be seen:
"An unhandled exception occurred and the process was terminated.
Message: Unable to find assembly 'MyThirdPartyLibrary, Version=1.234.5.67, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'.
StackTrace: at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name) at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
[code]....
Using FUSLOGVW.exe (i.e., Assembly Binding Log Viewer), I can see the problem is that IIS attempts to find MyThirdPartyLibrary in directory C:windowssystem32inetsrv. It seemingly refuses to look in the bin folder of the web app, where the DLL is actually located.
why the gridview RowDataBound event fires during a select command. I only expect it to run when the gridview is being populated with data. Is there some way to stop it from running when the select command is triggered?
I have one Datagrid with Footer. Footer Row Contains Input fields with one Button to add New Values. I have button click event but not getting fires. my code follows:
I am facing one strange problem,I have a gridview in which the last two columns have checkboxes and on those checkboxes click event I am doing some database operations.I also have one checkbox that is outside the gridview which actually shows or hides some of the gidview columns.This was all working well but now I have shifted that grid to a user control because I have to use it in two pages.The problem now is,When the page first loads and I click the check box or any control in the page that is outside the grid then it works perfectly.But once I click any of the check box within grid view column then its behavior chages, now even if I click the checkbox that is outside the grid then also the checkbox_CheckedChanged event of the checkbox that is whithin gridview is fired.That checkbox event then behaves something like a page_load event that is called for every page load and for every event with in the page after it is called once.
When I run my app locally I get no errors. No error from Global.asax, no redirection to an error page. Everythings works fine.
When I deploy my app to a test server, my app run there with no errors. No error from Global.asax, no redirection to an error page. Everythings works fine on the test server.
But when I deploy my app to production server, the app runs fine but I keep getting errors (emailed to me) from Global.asax. On production server we have these security apps that run and keep hitting all URLs of the app on the server. Just to make sure they are working fine. When these security app hit URL of my app, my application runs fine but it gives out this global.asax error. The funny thing is that error is empty. The error are emailed to me and the email is empty. Nothing there.
There are several other apps running on the same server. My app has its own app pool and is configured correctly.
The Silverlight app has a link to a different group of reports. This *was* working fine but no more. In the following code you can see the 'Reports' part that it calls another page [URL] namely right here: WHat is happening is when the reports page is called, it goes into 'Session timeout ' right away.
I am building an asp.net application, using II6 on windows server 2003 (vps hosting).
I am confronted with an error I didn't receive on my development machine (windows 7, iis 7.5, 64 bit).
When my wcf service tries launching my query running against a local sql server this is the error I receive:
Memory gates checking failed because the free memory (43732992 bytes) is less than 5% of total memory. As a result, the service will not be available for incoming requests. To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.
I've been using the Item Inserted event for my data controls, such as details view. I'm wondering if there are advantages to doing this with the data sources instead of the data control. There is a lot of overlap in the events provided by these two types of controls. Are there advantages to using the events raised by the data source instead of the ones raised by the data control itself. Should I be using the events raised by the data source instead of the control used to enter the data?
I use ObjectDataSource and DetailsView for Updating records . my Bll input parameter method is an Object instead of regular parameter . So i though i could make my own ObjectParameter in ItemUpdating event of DetailsView and i need some modifiation on the data that user input on boudfield in detailsView . I don't know how to access BoundFiled data from ItemUpdating Method of DetailsView.
i have a situation, like this, there is a one data grid, which is empty, in that we can add the values, in that grid was paging enabled, so after the 10 record, remaining values ll be in the next page of the grid, so if i want to view that value, i should be use the paging option, here i m getting proble, becz, here i have use the code
I am trying to validate data using the OnItemUpdating event on a FormView control. The event is fired when I click the update button but
e.OldValues["txtDate2"].ToString() in the function returns a null value. What am I doing wrong here ? ValidateForm(Object sender, FormViewUpdateEventArgs e) { string val = e.OldValues["txtDate2"].ToString(); }
I have 2 pages (let's say one is a.aspx and the other one is b.aspx). In the b.aspx, there is a nested listview control (let's say outer listview and inner listview).Therefore, there is an event on databound for the outer listview. so basically, the event will programmatically bind the datasource for the inner listview.
Now, in a.aspx there is a button to open a new window (with unique window name) b.aspx. The very first time click on the button, a.aspx opens a new window for b.aspx without triggering the databound event. However, the second click and so on will trigger the databound event which is causing an error because there is no data yet in the outer listview.My question is, what could have possibly triggered the databound event while there is no data in the listview?
I have a repeater control bound to a dataset. Within that repeater I have several further controls one of which is a dropdownlist. I trap the OnSelectedIndexChanged event of that dropdownlist because I want to recalculate some figures presented on the same row within the repeater.
How do I reference other controls which are on the same row of the repeater as the dropdownlist ? Is there an index property or other mechanism whereby I can identify the "current" row?
I want to insert data in to the database by click on button and input box appears.The data entered in input box must insert into the database site that can quickly descirbe me asp.net controls and advance properties , actuallly i had created lots sites in php. Now time for asp.net
I have the program structure as below. How can I set some label values in the gridview row from dropdownlist in selected index changed event? how to write ddl_selectedindexchange?