| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Query Strings
hay all,
ive been experimenting with query strings lately and would like to know if there is like an if function i could program, like if its a certain string variable like *.asp?id=1 so i could make it redirect if it its a certain id number, any help on the this would be much appreciated or another way to do this system would be greatly accepted, thanx all in advance, commekid |
|
#2
|
||||
|
||||
|
Hi
Code:
Select Case CInt(Request.QueryString("id"))
Case 1
Response.Redirect("1.asp")
Case 2
Response.Redirect("2.asp")
Case Else
Response.Redirect("noid.asp")
End Select
Cheers MK |
|
#3
|
|||
|
|||
|
thanx selwonk,
once again lol this works perfectly, do you know howto like mask it so when you click it it still redirects but in the address bar it stays as *.asp?id=1 ? thanx anyway ![]() commekid |
|
#4
|
||||
|
||||
|
You would have to do this with a frame but it's probably more effort than it's worth
MK |
|
#5
|
|||
|
|||
|
ok thanx anyway
|
![]() |
| Viewing: ASP Free Forums > Programming > Code Bank > Query Strings |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|