Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I got problem when i included scriptmanager,updatepanel,contenttemplate inn aspx page like alert box is not showing after inclusion of all these.
Here is my code
RegisterStartupScript(alert('Please Enter The Father Name')</script>");


return false
return false;

Give me the solution if u now please.
Posted
Updated 5-May-11 2:57am
v3

Try this,
ScriptManager.RegisterStartupScript(this, this.GetType(), "msg", "alert('Please Enter The Father Name');", true);
 
Share this answer
 
Comments
fjdiewornncalwe 5-May-11 9:10am    
Excellent. Young devs tend to use the simplest of overloads on methods because it is easier to get them to compile, but in this case I believe this answer will work. +5
Toniyo Jackson 5-May-11 9:12am    
Thanks Marcus
It sounds like you are experiencing a JavaScript issue. Take a look at the bottom of your browser when you load the page, and see if the JavaScript is throwing any exceptions. It wouldn't surprise me if this was preventing the page from even getting near your alert box.
 
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