Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - .net

 
Thread Tools Search this Thread
Old 11-04-2009, 12:12 PM   #1
Default .net


Hi, I work with .net and i got a line under MessageBox I don?t Know Why? My code is:

Else
MessageBox.Show("Please use numeric values only", "Problem", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If


Can you help me

Hadeel


EggHeadCafe - Software Developer Portal of Choice
Object-Relational Mapping as a Persistence Strategy
http://www.eggheadcafe.com/tutorials...l-mapping.aspx


Hadeel Sabah
  Reply With Quote
Old 11-04-2009, 12:47 PM   #2
Scott M.
 
Posts: n/a
Default Re: .net

<Hadeel Sabah> wrote in message news:...
> Hi, I work with .net and i got a line under MessageBox I don?t Know Why?
> My code is:
>
> Else
> MessageBox.Show("Please use numeric values only", "Problem",
> MessageBoxButtons.OK, MessageBoxIcon.Error)
> End If
>
>
> Can you help me
>
> Hadeel
>
>
> EggHeadCafe - Software Developer Portal of Choice
> Object-Relational Mapping as a Persistence Strategy
> http://www.eggheadcafe.com/tutorials...l-mapping.aspx


Since you posted in ASP .NET, I'll assume you are working with ASP .NET and
have the code above as part of your ASP .NET application....

First, when you get a blue or red wavy line under your code, you should
hover your mouse over the line and Visual Studio will tell you what it
doesn't like about that line.

If you are using ASP .NET, then the problem is that you can't use the .NET
MessageBox class as part of a web page's code because the web page's code
runs up on the web server that will be hosting the web application. There
is no reason to show a MessageBox up on the server, where no one will see
it.

-Scott




Scott M.
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46