This is becasue, the Response.End method ends the page execution and shifts the execution to the Application_EndRequest event in the application's event pipeline. The line of code that follows Response.End is not executed.
For Response.End, call the HttpContext.Current.ApplicationInstance.CompleteRequest method instead of Response.End to bypass the code execution to the Application_EndRequest event.
If you use
1. Response.End，you should try ApplicationInstance.CompleteRequest
2. Response.Redirect，please change it to Response.Redirect(String url, bool endResponse)，set endResponse as false. For example,
Response.Redirect ("nextpage.aspx", false);
3. Server.Transfer，please change it to Server.Execute.
I divided my application into 2 different web apps. I have created a control in the first web app and i need to reference it in the second application. Is it possible to do so? I am trying to drag and drop the control but when debugging i am getting problems.
First of all, whether it's a Custom control or a User control? Heading of your query says a usercontrol.
Had it been a custom control, you can include that as a reference and drag-drop it on your designer.
If it's a user control that too in another project, it would be difficult for you to refer. Either include that user control in your project where you need it or design a similar one.
Looks like you are trying to access data using a procedure or table valued function and getting this error.
If you check the stored procedure(SP) or table valued function(TVF) then you will find that they expect some parameters in order to run. You are calling TVF/executing SP without suppling those parameters.
suppose i have button in my page and i want that when user click on that button then i will call gridview sort event
explicitly with proper parameter. is it possible if yes then please guide me with sample code.
thanks in advance
please help me in asp .net on clicking a button in left frame the data related to it has to appear in right.I want the code also.
this the model in which i want that is with frames. but in this link it is provided in java script . but i want the coding in asp.net
u plz check the link in that model am designing my website. In that plz select frame layout. I want the coding in asp.net. some of my friends have suggested to use either ajax or javaScrpit. But my requirement is only in asp.net