Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My source code as follows;

ASP.NET
<asp:UpdatePanel id="updatepanel" runat="server">
         <contenttemplate>
         <asp:Panel ID= "pnlcofirmationsms" Visible = "true" ScrollBars = "Both" runat= "server">
         <asp:GridView ID="gvshowcourse" runat="server"
                      CellPadding="4" ForeColor="#333333" Height="120px" Width="32%">
                        <footerstyle backcolor="#990000" font-bold="True" forecolor="White" />
                        <rowstyle backcolor="#FFFBD6" forecolor="#333333" />
                        <pagerstyle backcolor="#FFCC66" forecolor="#333333" horizontalalign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <alternatingrowstyle backcolor="White" />
                    
         
         </contenttemplate>
        
       <Aasp:ModalPopupExtender Drag="true" PopupDragHandleControlID="tdHeader" DropShadow="true"
            PopupControlID="pnlcofirmationsms" BackgroundCssClass="modalBackground" TargetControlID="dummy"
            ID="ModalPopupExtender2"  runat="server" CancelControlID="btnCancelRoom">


wheni run shows error as follows

The control with ID 'updatepanel' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

what is the problem in my source page.

Regards,
Narasiman P.
Posted
Updated 9-Jan-14 18:49pm
v2

You need to add the script manager to work with update panel

Add the following

XML
<asp:ScriptManager ID="ScriptManager1" runat="server">
       </asp:ScriptManager>
 
Share this answer
 
Comments
Karthik_Mahalingam 10-Jan-14 0:52am    
5!,exactly
add this befor your gridview:-

XML
<asp:ToolkitScriptManager ID="ScriptManager1" runat="server">
</asp:ToolkitScriptManager>


refer below links for details:-
http://www.aspdotnet-suresh.com/2011/03/how-to-show-modalpopup-to-edit-gridview.html[^]
http://chikkanti.wordpress.com/2011/11/17/305/[^]
http://www.aspsnippets.com/Articles/Use-AJAX-Modal-Popup-Extender-inside-GridView-in-ASPNet.aspx[^]
 
Share this answer
 
Comments
Karthik_Mahalingam 10-Jan-14 0:52am    
5!,exactly
TrushnaK 10-Jan-14 0:58am    
thanx karthik.... ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900