2
Answers

any possible to insert image while calling alert box

Renuka Devi

Renuka Devi

11y
2.8k
1
any possible to insert image while calling alert box  in web application

"Page.RegisterClientScriptBlock("ShowMessage", "<script>alert('Please Fill the Data')</script>");"

i'm working in .net 3.5 . i new to web development.
help me out as soon as possible.
Answers (2)
0
Riyaz Akhtar

Riyaz Akhtar

NA 1.6k 318.3k 11y
it is not possible to use any html code in default javascript alert. Therefore you cannot use image in that.

please use jAlert from jquery to display image in alert message.

See demo below:
http://labs.abeautifulsite.net/archived/jquery-alerts/demo/

Jquery Plugin:
http://archive.plugins.jquery.com/project/jAlert



0
Santhosh Kumar Jayaraman

Santhosh Kumar Jayaraman

NA 9.9k 2.3m 11y