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 Mike Lewis 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.

cat5ive

MIS
Dec 3, 2004
184
US
Hi,

I have an asp page that display list of records. The page allow user to delete a record (one record at a time). When user click on delete link the asp call itself to call CGI program to delete a record. After call CGI program, I want to stay on the same listing page as before user click on delete link. How can I do that.
Below is my code sniplet. Please help
Code:
straction = request("action")
if straction > ""  then 
//call cgi  
response.redirect (not complete)
endif
Code:
<td><a class="ver10pxgrn" href="listing.asp?custnumber=<%=custnumber(i)%>&action=D"><u>delete</u></td>
 
i normally store the exact link where i want to goto after such an action into a session variable....

Simply like this:

Code:
session("sRedirect") = "listing.asp?customernumber= blabla" 


' stuff

response.redirect(session("sRedirect"))



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top