|
-
Dec 3rd, 2004, 08:24 AM
#1
Thread Starter
Fanatic Member
Getting prompt input value
Hi guys, I have the following code on my page load event so the user can enter a date when they click button2.
Code:
Button2.Attributes.Add("onclick", "var dteDate = prompt('Enter Import Date');")
My question is, how can I get this value they input when the code runs the server click event?
Thanks
-
Dec 3rd, 2004, 04:37 PM
#2
Addicted Member
Re: Getting prompt input value
I don't think what you are attempting to do is possible or atleast I could not figure out a whay to do it. I have to ask why you prompt the user for this value instead of just placing a textbox on the page and going with that value. It would seem like it would be easier and you could use some of the ASP.NET validation controls to validate the value if it was required.
-
Dec 4th, 2004, 12:47 AM
#3
New Member
Re: Getting prompt input value
I guess one way to do it is to place one hidden control in your form and get the value with the dim x as x =ctype(request.form("yourhiddenctl"),x) and in your script doing something like
var x = document.getelementbyid("nameofyourhiddenctl");
x=window.prompt("msg");
hope this help
-
Dec 5th, 2004, 12:30 PM
#4
Thread Starter
Fanatic Member
Re: Getting prompt input value
Bump, anyone know how to do this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|