Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message Box is Netscape?

Status
Not open for further replies.

Trope

Programmer
May 14, 2001
110
US
Straight from the asp.net tutorials...

This WORKS in Netscape - giving me a VB message box just fine.

But how? I thought VBscript only ran in IE?

Is this new .net stuff going to solve my x-browser problems?

Just a brief explanation would be great!

Thanks!

<html>

<script language="VB" runat="server">

Sub Page_Load(Sender As Object, E As EventArgs)
Message.Text = "You last accessed this page at: " & DateTime.Now
End Sub

</script>

<body>

<h3><font face="Verdana">Manipulating Server Controls</font></h3>

This sample demonstrates how to manipulate the &lt;asp:label&gt; server control within
the Page_Load event to output the current time.

<p>

<hr>

<asp:label id="Message" font-size="24" font-bold="true" runat=server/>

</body>

</html>
 
Strange...According to the code, all it should do is set the Text property of a Label with ID="Message". To me, it has nothing to do with a client side VBScript MessageBox. Are you sure you don't confuse the Label for a MessageBox?
 
I am sorry, i posted the code wrong.

In the sub I added a simple MSGBOX("HELLO")

and again, it works in IE.

Am I missing something?
 
That's very unusual. If I'm using the same code as you, it throws me this error: "It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application."
As I know, MsgBox/MessageBox works with Windows Forms, not Web Forms.

[morning]
 
I knew something was wacky...

I installed that Web Matrix thing from ASP.NET the site.

I am not exaggerating - it's throwing me a vb msgbox in netscape AND mozilla.

I thought my headaches were over as far as x-browser compatibility. Just from my computer, huh?

Trope
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top