|
-
Jul 9th, 2001, 02:55 PM
#1
(Parentheses) v. No Parentheses
well... i've run into another curiousioty with asp... for some unknown reason, i used parentheses around an argument with a redirect as such:
Code:
Response.Redirect("index.asp")
This works fine ( as far as i can tell ), but it leaves the name of the page that calls it in the address bar, which happens to be called 'scripts.asp'... this troubled me... so i removed the parentheses:
Code:
Response.Redirect "index.asp"
and 'index.asp' appears in the address bar... i have no clue why this is so... but would like to know why... any ideas?...
because i always use vbscript when writing asp code, i never define the script language, maybe the asp engine sees the parentheses and determines that it's jscript, and possibly gets confused?...
thanks in advance!
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
|