This would work too ^_^;

Greg

-----Original Message-----
From: Chris Tifer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 6:19 PM
To: ActiveServerPages
Subject: Re: Prompts in ASP


It's going to have to be more than 'like' the javascript prompt - it's
going to have to be the JavaScript prompt (unless you want to go
the client-side VBScript route)

So, to get that working:

<script language="javascript">
<!--
var strUserName = prompt("hi, I am a lonely machine and want to know your
username", "")
if)(strUserName != null) && (strUserName != "")){
    location.href = "loginpage"
}
// -->
</script>


Hope that helps,

Chris Tifer
http://www.emailajoke.com


----- Original Message -----
From: "Hohimer, Christopher J" <[EMAIL PROTECTED]>
To: "ActiveServerPages" <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 12:19 PM
Subject: Prompts in ASP


> Ok here's my situation. I want to prompt the user for a username when
> entering my site
> Like the javascript prompt and pass it off to asp for use later. How can I
> do this
>
> So it would be like this
> <html>
> <head>
> <script language='javascript'>
> userid=prompt("hi, what's your username", "username")
> </script>
> <body>
> <p>your userid is: <% =userid %>
> </body>
> </html>
>
>
> ---
> You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
>


---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to