Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Arnold Scott   on Sep 17 In Asp.net Category.

  
Question Answered By: Angelica Ramos   on Sep 17

But, if you WANT an alert window, you can just use a literal Web control
like so:


<asp:Literal id="ltlErrMsg" runat="server" />

And then set its Text property to the appropriate JavaScript code:

ltlErrMsg.Text = "<script language=""JavaScript"">" & vbCrLf &
"alert(""Hello, World!"");" & vbCrLf & "<" & "/script>"

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Client side message (dialog) box Or get search suggestion and latest updates.


Tagged: