Message Box in ASP.Net 2.0 and VB
Re-invent ASP.NET Hosting Community
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Message Box in ASP.Net 2.0 and VB Expand / Collapse
Author
Message
Posted 7/18/2007 7:20:46 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/23/2007 4:59:41 AM
Posts: 1, Visits: 6
Hello,

I am trying to display a basic message box containing two lines of instructions. If a user needs some help on a page, they click the button marked 'Instructions' and a message box pops up and tells them what to do.

It works fine on the local server on my machine when I debug, but returns my customised error page when I upload it.

Any ideas?

The code I'm using is in a master page and is:

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)

MsgBox("Read the information below, using the next and previous buttons, to compare your business practices with the FEC's recommendations. Create your Action Points in the table provided", MsgBoxStyle.MsgBoxSetForeground, "Instructions")

End Sub


I'm sure that it is something obvious, but I'd appreciate any help or suggestions
Thanks.
Post #588
Posted 9/20/2007 9:31:43 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 12/27/2007 4:20:11 PM
Posts: 22, Visits: 26
are you aware this is ASP.NET ?


You cannot have Message boxes on that way, you can have alert('some message'); but not "MsgBox" which is used in windows environment.
Post #632
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Administrator, Re-invent (Paul), Re-invent (Nick)

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 12:23pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.016. 10 queries. Compression Disabled.


Copyright 2007 Re-invent Technologies LLC All Rights Reserved.