I have done this now different error occur something like that below
RegisterForEventValidation can only be called during Render();
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: RegisterForEventValidation can only be called during Render();
Source Error:
Line 38: DetailsView1.AllowPaging = false;
Line 39: DetailsView1.DataBind();
Line 40: DetailsView1.RenderControl(hw); Line 41: Response.Output.Write(sw.ToString());
Line 42: Response.Flush();
|