Ya i do this but it give me error that it must be placed inside the form tag but i have one form tag on my master page so m not able to apply form tag here
Server Error in '/' Application.
Control 'MainContent_DetailsView1' of type 'DetailsView' must be placed inside a form tag with runat=server.
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.Web.HttpException: Control 'MainContent_DetailsView1' of type 'DetailsView' must be placed inside a form tag with runat=server.
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();
|