Server Error in '/kasani' Application.
Exception Details: System.Web.HttpException: Control 'ctl00_ScriptManager1' of type 'ScriptManager' must be placed inside a form tag with runat=server.
Source Error:
Control 'ctl00_ScriptManager1' of type 'ScriptManager' 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 'ctl00_ScriptManager1' of type 'ScriptManager' must be placed inside a form tag with runat=server.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Problem : Here I Had Given ScriptManager In The Body Where There Is No runat="server" In The Tag, So The Error Occured
<body>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<form runat="server">
...
</form>
</body>
Solution : The ScriptManager Must Be Place Inside A Form tag With runat=server
<body>
<form runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
...
</form>
</body>
No comments:
Post a Comment
Note: only a member of this blog may post a comment.