BluJag
Perch
Passing Parameters in a Query String
You have a link similar to that shown below but it doesn't work.
If the variables MemberName and MemberType were something like "John Doe" and "Senior Member" the link would fail because of the spaces in the variables.
So, replace the spaces by %20 like this
MemberName=Replace(MemberName," ","%20")
MemberType=Replace(MemberType," ","%20")
<%
AccountsLink = "http://www.myweb.com/account_details.asp?account=" & MemberName & "&Type=" & MemberType & " target='_blank'>" & "Account Details" & "</a>"
response.write(AccountsLink)
%>
The link will now work, opening up in a new window - get rid of the target='_blank' if you don't want a new window. In asp.net you could use the more elegant URLEncode method instead.
You have a link similar to that shown below but it doesn't work.
If the variables MemberName and MemberType were something like "John Doe" and "Senior Member" the link would fail because of the spaces in the variables.
So, replace the spaces by %20 like this
MemberName=Replace(MemberName," ","%20")
MemberType=Replace(MemberType," ","%20")
<%
AccountsLink = "http://www.myweb.com/account_details.asp?account=" & MemberName & "&Type=" & MemberType & " target='_blank'>" & "Account Details" & "</a>"
response.write(AccountsLink)
%>
The link will now work, opening up in a new window - get rid of the target='_blank' if you don't want a new window. In asp.net you could use the more elegant URLEncode method instead.