Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2003
    Posts
    82
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Message Box in ASP.Net

    Would anybody tell me how to use a message box in ASP.Net applicatin properly?

    In my web form I have -

    Imports System.Windows.Forms
    and then somewhere in the code
    MessageBox.Show("Text", "Title", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button3, MessageBoxOptions.ServiceNotification)

    and this line and all following is never executed. What is wrong?

    Regards

  • #2
    Regular Coder
    Join Date
    Dec 2002
    Location
    France
    Posts
    522
    Thanks
    0
    Thanked 0 Times in 0 Posts

    alert

    for aSP NET it is better to use a javascrip


    youLink.attributes.add("onClick" , "myAlert")

    and your Javascript

    window.alert("the text you like");

  • #3
    New Coder
    Join Date
    Jun 2003
    Posts
    82
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thx angiras, you helped again!

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just to add to angiras' comment - VbScript should never be used client-side, unless you only want your website to work with Internet Explorer, and nothing else.

    I always use JavaScript for client-side coding. Always.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

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