|
-
Jul 29th, 2003, 01:27 PM
#1
Thread Starter
Fanatic Member
JScript, ASP: Validation
I looked for this everywhere and I cannot find my answer, everyone uses VBScript. 
What I have is a query that passes in a few values.
myPage?num=1&text=hi
in my ASP statement I do
Code:
num = Request('num');
text = Request('text');
If I pass in myPage?num=1 it will return an undefined value for text. I know if I tried
Code:
if(text == 'undefined')
//work here
it will not work. Neither will using null or ''. Can I somehow validate my vars and prevent this?
I tried using try and catch but these did not work.
Thanks for any help. I'm at the end of the road for this one.
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
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
|