Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use ..
C#
response.write(<script>Alert('error')</script>); return;

to show the message but while showing message it doesnot show any of page content but i want to know is there any way to show this script message which can show page content and massege but not postback the data to server when error causes
Posted
Updated 22-Sep-13 0:15am
v3

1 solution

 
Share this answer
 
Comments
varun150 22-Sep-13 7:47am    
this.Page.ClientScript.RegisterStartupScript();
return;

is working but it doesnot shows the controls after this code untill we click ok on message box___________

for exapmle i want the same effect as it shows on codeproject after something goes wrong on posting comment it says "our server is overworked problem on posting comment or something like that" and it shows message box everything on page that was before clicking submit

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