Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Response Redirect

Status
Not open for further replies.

ecugrad

MIS
Apr 17, 2001
191
US
Can somebody help me with the below response.redirect problem. I'm trying to send a parameter back to a page.

<%@ LANGUAGE=&quot;VBSCRIPT&quot; %>
<%response.buffer=true%>

<%

Set conn = server.createobject(&quot;adodb.connection&quot;)
DSNtemp=&quot;DRIVER={Microsoft Access Driver (*.mdb)}; &quot;
DSNtemp=dsntemp & &quot;DBQ=&quot; & server.mappath(&quot;../../fpdb/PMData.mdb&quot;)
conn.Open DSNtemp

%>

<%
SurveyID = Request(&quot;SurveyID&quot;)
response.write(surveyID)

strRegion=Replace(Request(&quot;Region&quot;),&quot;'&quot;,&quot;''&quot;)
'response.write(&quot;Region:&quot;&strRegion&&quot;<BR>&quot;)


strcomments=Replace(Request(&quot;comments&quot;),&quot;'&quot;,&quot;''&quot;)
'response.write(&quot;comments:&quot;&strcomments&&quot;<BR>&quot;)

SQLStmt =&quot;UPDATE bsasurvey SET BPReply = '&quot;&strcomments & &quot;' WHERE SurveyID= CINT('&quot;&SurveyID&&quot;')&quot;


Set rs = conn.Execute(SQLstmt)%

response.redirect (&quot;../Questions/HDBankPro.asp?Region=&quot;strRegion&quot;)&quot;
%>
I have tried several formats on the redirect, but can't get it to work

Thanks



response.redirect (&quot;../Questions/HDBankPro.asp?Region=<%&quot;strRegion&quot;%>&quot;)
 
have you tried:

response.redirect (&quot;../Questions/HDBankPro.asp?Region=<%=strRegion%>&quot;)


 
It was very early:

response.redirect (&quot;../Questions/HDBankPro.asp?Region=&quot; & strRegion)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top