I need to put a query string into a servervariable so when the user posts back to the page, the variable is still in the URL (and it will not crash). How do I do this.
Here is the code that calls the page:
function GoProfile(Userid)
{
window.document.location.href = 'AdminEditProfile.asp?UserID=' + Userid;
}
Then when it posts back to the page, here is the code that calls it back:
<form action="<%=Request.ServerVariables("SCRIPT_NAME")%>" method=post id=form1 name=form1>
Since I have a line of code, like this:
prm.Append cmd.CreateParameter("@UserID", adVarchar, adParamInput,24,request.QueryString("UserID"))
on the page if the query string is not in the URL when it posts back it will crash (but the rest works).