Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 04, 2012 07:22 AM by nizam.mcts
Member
686 Points
163 Posts
May 30, 2012 05:54 AM|LINK
How to display messagebox after saving into database using commandnew button.
net aspx
115 Points
72 Posts
May 30, 2012 05:59 AM|LINK
Try the following code snippet and let me know if it works for you
<dx:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" ... ... <ClientSideEvents EndCallback="OnRowInserted"/> </dx:ASPxGridView>
All-Star
31378 Points
5422 Posts
May 30, 2012 06:02 AM|LINK
hi, you can use below code after saving data into database
Page.RegisterStartupScript("Alert", "<script>alert('Successfully Registered and now u can login')</script>");
(Or)
Page.ClientScript.RegisterStartupScript(this.GetType(), "Alert", "alert('Hi')", true);
ScriptManager.RegisterStartupScript(this, this.GetType(), "Alert", "alert('hi');", true);
Refer : http://forums.asp.net/t/1808039.aspx/1?how+to+show+java+script+alert+in+button+click+event+
116 Points
38 Posts
Jul 04, 2012 07:22 AM|LINK
If still notworking then add system.windows.forms reference to the page and project and
in code behind MessageBox.Show("ur msg");
Go through this link which may usefull to you:
http://www.codeproject.com/Questions/271958/How-to-dispaly-messagebox-in-asp-net-web-applicati
raghunandcs
Member
686 Points
163 Posts
To display message box
May 30, 2012 05:54 AM|LINK
How to display messagebox after saving into database using commandnew button.
net aspx
mohith.net
Member
115 Points
72 Posts
Re: To display message box
May 30, 2012 05:59 AM|LINK
Try the following code snippet and let me know if it works for you
<dx:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" ... ... <ClientSideEvents EndCallback="OnRowInserted"/> </dx:ASPxGridView>Bangalore's City Information Directory!
karthicks
All-Star
31378 Points
5422 Posts
Re: To display message box
May 30, 2012 06:02 AM|LINK
hi, you can use below code after saving data into database
<div>Page.RegisterStartupScript("Alert", "<script>alert('Successfully Registered and now u can login')</script>");
(Or)
Page.ClientScript.RegisterStartupScript(this.GetType(), "Alert", "alert('Hi')", true);
(Or)
ScriptManager.RegisterStartupScript(this, this.GetType(), "Alert", "alert('hi');", true);
Refer : http://forums.asp.net/t/1808039.aspx/1?how+to+show+java+script+alert+in+button+click+event+
</div>
net aspx
Karthick S
nizam.mcts
Member
116 Points
38 Posts
Re: To display message box
Jul 04, 2012 07:22 AM|LINK
If still notworking then add system.windows.forms reference to the page and project and
in code behind MessageBox.Show("ur msg");
Go through this link which may usefull to you:
http://www.codeproject.com/Questions/271958/How-to-dispaly-messagebox-in-asp-net-web-applicati