Tuesday, November 2, 2010

Ajax Pop up message

Use the following code for the pop up message.

aspx

asp:ScriptManager id="ScriptManager1" runat="server" EnablePartialRendering="True" />

asp:Panel ID="Panel1" runat="server">

asp:UpdatePanel id="UpdatePanel2" runat="server">

ContentTemplate>





/ContentTemplate>

/asp:UpdatePanel>

/asp:Panel>

aspx.cs

ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('Thanks for contacting DGP CONTRACTING.');", true);

No comments: