C# Messagebox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emajka21
    New Member
    • May 2007
    • 38

    #1

    C# Messagebox

    I am doing a simple C#/ASP program in Visual Studios 2005. I want to use a messagebox. Everything I read shows I need the "using System.Windows. Forms;" namespace added to use message box. But when I type that in I get the following error:
    The type or namespace name 'Windows' does not exist in the namespace 'System'

    Any thoughts here?

    Thanks for your help!
  • prabunewindia
    New Member
    • Mar 2007
    • 199

    #2
    hi friend,
    you can solve it by adding ref.(System.Win dows.Forms)
    but don't use this message box for asp application.
    because when you deploy as website, the message box you created are in server, not in client browser.
    so try to use javascript
    Prabu
    Originally posted by emajka21
    I am doing a simple C#/ASP program in Visual Studios 2005. I want to use a messagebox. Everything I read shows I need the "using System.Windows. Forms;" namespace added to use message box. But when I type that in I get the following error:
    The type or namespace name 'Windows' does not exist in the namespace 'System'

    Any thoughts here?

    Thanks for your help!

    Comment

    Working...