I tried to show a message box using :
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Failed", "alert('Update and Upload Failed..!!')", true);
Message box appears. But I want to change the "!" icon.. what are the posible keywords to replace "alert" ? I can't find anything on the web... I can replace "failed" with any words... but can't see whats the purpose of this part. it doesnt make difference
to the message box.
You have no control over the alert box look. That's determined by the browser. If you need to customize it you'll need to use a different way, maybe by using a modal dialog. There are many jQuery related modals; also the Ajax control toolkit.
tongkimongki
Member
1 Points
3 Posts
ScriptManager.RegisterStartupScript
Jan 08, 2013 03:01 AM|LINK
I tried to show a message box using : ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Failed", "alert('Update and Upload Failed..!!')", true);
Message box appears. But I want to change the "!" icon.. what are the posible keywords to replace "alert" ? I can't find anything on the web... I can replace "failed" with any words... but can't see whats the purpose of this part. it doesnt make difference to the message box.
Please help..
thanks
senthilwaits
Contributor
3832 Points
651 Posts
Re: ScriptManager.RegisterStartupScript
Jan 08, 2013 03:06 AM|LINK
Unfortunately, JavaScript's alert message box cannot be customized in any way. There are 2 possible options
Senthil Kumar Sundaram
MetalAsp.Net
All-Star
112075 Points
18242 Posts
Moderator
Re: ScriptManager.RegisterStartupScript
Jan 08, 2013 03:09 AM|LINK
Sujeet Saste
Contributor
3008 Points
572 Posts
Re: ScriptManager.RegisterStartupScript
Jan 08, 2013 03:15 AM|LINK
You will always see the host name on message box.. I also tried so many times but no luck...
I think we are using this/page which might cause of appearance of hostname.
@mikesdotnetting- can making change in place of this/page change the header of message box.
Do FEAR (Face Everything And Rise)
Please mark as Answer if my post helps you..!
My Blog
tongkimongki
Member
1 Points
3 Posts
Re: ScriptManager.RegisterStartupScript
Jan 08, 2013 03:27 AM|LINK
i dont mind seeing hostname on the messagebox.. i just want to change the "!" icon on the message box...
thanks
tongkimongki
Member
1 Points
3 Posts
Re: ScriptManager.RegisterStartupScript
Jan 08, 2013 03:29 AM|LINK
yes, may be i should use another way...
thanks for the suggestion