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 Westi 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.

cwolgamott

Programmer
May 29, 2002
69
US
Hello. :) I am working on an ASP page that I want to be able to display some information from a SQL Server database table. I check for a record counter, and if there is more than one record, I want to redirect it to a different page. The most current code that I have tried is:

If NOT rs.eof then
rs.movefirst
Do until rs.eof
recCounter = recCounter + 1
rs.movenext
loop
End If
Response.write recCounter

If recCounter > 1 then
Response.Redirect "newcaseselectextension.asp?Extension=" & Request("extension")
End If

I have been searching for some examples, but none of the ones I have found work. I would greatly appreciate any help or suggestions. :) Thank you. :)
 
I was actually able to figure it out. :) I displayed both the newcaseselectextension.asp and Extension.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top