Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I want to show message box when data is successfully enter in data base in asp.net using C#. and when message box button is click the page is redirect to another web page.
Posted
Updated 6-Nov-12 20:02pm
v2
Comments
MT_ 7-Nov-12 1:40am    
No problem. You can show. But what is the question?
Sanjay K. Gupta 7-Nov-12 2:23am    
Have you written the Response.Redirect method after showing the alert?

C#
if(data entered)
{
ClientScript.RegisterClientScriptBlock(this.GetType(), "ok", "alert("Data entered");",true);
}
else
{
ClientScript.RegisterClientScriptBlock(this.GetType(), "error", "alert("Data not entered");",true);
}
 
Share this answer
 
Comments
Dharmendra-18 7-Nov-12 2:00am    
This is not working I already do this type, i want to show dialogue box in asp.net and after click on message box button page is redirect to another page.
 
Share this answer
 

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