This topic is locked

Redirection does not work

9/8/2006 7:35:08 AM
ASPRunnerPro General questions
P
pharaon_98 author

Hi
I have the following in the _events.asp file
<%
Sub AfterEdit()

'** Redirect to another page ****

Response.Redirect "test.asp?masterkey=<%=rsTemp(0)%>"
End Sub
%>
I also tried
<%
Sub AfterEdit()

'** Redirect to another page ****

Response.Redirect "test.asp?masterkey=&rsTemp(0)"
End Sub
%>
but doesn't work either. All i need is to redirect to a page with the masterkey value after edit.
Thanks

J
Jane 9/11/2006

Hi,
if you want to redirect to list page of test table use following code:

Sub AfterEdit()

'** Redirect to another page ****

Response.Redirect "test_list.asp?masterkey=" & rsTemp(0)
End Sub



Please note that you need to define rsTemp(0) before you use it in the event.

P
pharaon_98 author 9/11/2006

Hi Jane
In fact, what i need is to redirect to another page we created. We need to provide the new page with one field from the edit page.
This is what i really have
Response.Redirect "test.asp?a=d=dict(N°)"
I need to feed the new page with the value of the field "N°" from the edit page.

Sergey Kornilov admin 9/13/2006
Response.Redirect "test.asp?a=d=" & dict("N°")


I highly recommend to learn basic ASP syntax. As a good start I recommend to visit http://www.webcheatsheet.com/asp/