Monday, 6 May 2013

update panel with Alert message


ScriptManager.RegisterStartupScript(upt, upt.GetType(), "yourkeyname", "alert('Sent Successfully!!');window.parent.location.href = window.parent.location.href", true);




with out updatepanel

Response.Write("<script language='javascript'>alert('Sent Successfully!!');window.parent.location.href = window.parent.location.href</script>");


Close Button javascript

   <asp:Button ID="btnclose" runat="server" OnClientClick="javascript:SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.cancel, 'Cancelled clicked');"

CssClass="ms-ButtonHeightWidth" Text="Close" />;

No comments:

Post a Comment