Click here to Skip to main content
15,886,786 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I dont want my master page to get reloaded every time so i have ajaxed the entire set of Content pages..
but by doing this alert messages are not displayed.
How do i solve this?
Posted
Updated 22-Nov-11 20:45pm
v2
Comments
Brij 23-Nov-11 2:32am    
How are you showing alert messages. Can you post the code snippet
Pramod Harithsa 23-Nov-11 2:47am    
Response.write("<script>alert('My message')</script>");

This code will help you to show alert message using Ajax ScriptManager.

C#
ScriptManager.RegisterStartupScript(
this, this.GetType(), "msg", "alert(' Message....? ');", true);
 
Share this answer
 
Comments
Pramod Harithsa 23-Nov-11 2:58am    
Thanks..
C#
ScriptManager.RegisterStartupScript(
this, this.GetType(), "msg", "alert(' Message....? ');", true);
 
Share this answer
 
My be this will help you

Response.Write("");
 
Share this answer
 
Comments
Pramod Harithsa 23-Nov-11 4:20am    
no. . this doesnt work. . in an ajaxed page

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