Results 1 to 3 of 3

Thread: ASP Message Box

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    779

    ASP Message Box

    Does anybody know how to create a message box that will pop up and ask the user to enter in some data into a text box, sort of like a login.

  2. #2
    Frenzied Member
    Join Date
    Aug 2005
    Posts
    1,042

    Re: ASP Message Box

    bezaman:

    It isn't real clear what you are looking for?

    If you just want some VBScript that will have a message box pop up and ask for a user's name, this will work:

    Dim Greeting
    Dim UserName
    Dim TryAgain

    Do
    TryAgain = "no"

    UserName = InputBox("Please enter your name:")
    UserName = Trim(UserName)

    If UserName = "" Then
    MsgBox "You must enter your name."
    TryAgain = "Yes"
    Else
    Greeting = "Hello, " & UserName & ", it's a pleasure to meet you."
    End If

    Loop While TryAgain = "Yes"

    MsgBox Greeting

    If you want an ASP file that will create a log in area, then try the attached file. Note: You will have to change a number of things such as the database and some of the other field references. You could just run the HTML and see if it is what you are looking for.

    Good Luck
    Last edited by AIS4U; Mar 25th, 2007 at 05:14 AM.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: ASP Message Box

    Or you can use javascript's alert() function which will work in all browsers.

    alert('your text here');

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