Results 1 to 2 of 2

Thread: How to create a very simple Message Box in webform1.aspx >.<

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Posts
    5

    How to create a very simple Message Box in webform1.aspx >.<

    Forgive for my noobness... i try msgbox or even MessageBox.Show(), but none of them seems working...
    Anyone got a simple code or simple sample to show? thanks a lot

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    MessageBox is a Windows Form component and can't be used in ASP.NET. If you want to display a message box (javascript alert) you can do this
    VB Code:
    1. Dim strScript As String
    2.  
    3. strScript = "<script>"
    4. strScript = strScript & "alert('Test');"
    5. strScript = strScript & "</script>"
    6.  
    7. Page.RegisterStartupScript("ClientScript", strScript)
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width