|
-
Jul 3rd, 2001, 04:02 AM
#1
QueryString
I want to send this "sub.asp?id=2" in a QueryString
but path.asp?sub.asp?id=2 wont work
how can I get around this?
-
Jul 3rd, 2001, 06:13 AM
#2
Black Cat
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jul 3rd, 2001, 09:38 AM
#3
and how would I do that? whats the code for "?" and "=" ??
-
Jul 3rd, 2001, 10:51 AM
#4
Black Cat
In ASP:
VB Code:
Server.URLEncode("Whatever")
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Jul 3rd, 2001, 02:09 PM
#5
-
Jul 4th, 2001, 03:16 AM
#6
Well I found that
path.asp?sub.asp?id=2
returns sub.asp?id=2 because there is a ? and not a & which would split it up
my problem is the Varible that im storing it in seams to empty halfway thru my code
-
Jul 4th, 2001, 03:26 AM
#7
Lively Member
I got a work around for what you want to do. (I don't think what you want to do is possible)... but
path.asp?ID=2&Page=PageName.asp
Now you can retrieve the ID and the Page.
And on the page that you catch this variables...
Response.redirect (pageName.asp)
So now you can have 1 page (to do the work) and redirect to multi pages.
I did this because : Want 1 page that will display multiple messages like 'Updated suceeded'. So I have my response.page (to do all the work)... and just redirect to the that message page with the message and file to redirect to.
-
Jul 4th, 2001, 03:59 AM
#8
Well there might be more querystrings, there might be none, so that would be unpractical....as I say mine works for now, Im going to use * as a delimiter as when i need more than one querystring I will have problems
Im having another problem at the moment :/
"Microsoft JET Database Engine error '80004005'
Disk or network error.
/simon/asp/newreply.asp, line 33 "
It stops at the line
"CN.Open CONNECTION_STRING"
CONNECTION_STRING = "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & DATABASE_PATH
and
DATABASE_PATH = "c:\inetpub\wwwroot\simon\asp\db\sub.mdb"
This error has just appeared now Ideas?
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
|