Click here to Skip to main content
15,922,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am using asp.net,c#,vs2008 with web application.
how to use message box using ajax extender in asp.net.

help will be appreciated...
give me any link or suggestion

mukesh
Posted

Hi,

MessageBox doesn't exists in ajax, use javascript's alert() method.

A CP solution:
AJAX Enabled MessageBox[^]

Best Regards
 
Share this answer
 
v2
Comments
fjdiewornncalwe 3-Apr-12 11:42am    
+5. Correct.
El_Codero 3-Apr-12 11:45am    
Thank you Marcus.
Hi ,
you can use ajax modal popup

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/ModalPopup/ModalPopup.aspx[^]
Best regards
M.Mitwalli
 
Share this answer
 
HI @Mukesh

There are sevral ways you can show the message

1)Alert('show hello ') using java script.
2)Model pop up extender asp.net control
3)using the register java script mathod with response.write() mathiod here is the example for this

Response.Write("<script> alert('Document not found'); window.close();</script>");

4)using the register script mathod(you can also use this when you are using the update panel but include one more parameter)
ScriptManager.RegisterStartupScript(this, typeof(string), "Message", "alert('No data');", true);


Hope it will help you

Thanks
 
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