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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting URL of the page and passing it to other page 5

Status
Not open for further replies.

zxcdf5je

Programmer
Apr 1, 2005
86
US
hi there,
I have this page which lists all the users name and they can be edited deleted and updated.The page which does that is 2.asp and the page which actually lists all the users is 1.asp.
when i delete a particular user by using 2.asp ,after delteing the users name it redirects me to the first page of 1.asp and i again have to go do 28th page to proceed ahead with other users..is there any way i could catch that page number /page and make the user return to the page from where they came from?

Hope u are understanding what i want..
help needed..pleaseeeee

-Smita

1.asp uses this code to catch url:
'-------------------------------
' list Navigation begin
'-------------------------------
bEof = rs.eof
if not(rs.EOF and iPage=1) then
if iPage = 1 then
%>
<font style="font-size: 10pt; color: #000000; font-weight: bold; font-family: Arial, Tahoma, Verdana, Helvetica">Previous</font>
<%
else
%>
<a href="<%=file_name%>?<%=form_params%><%=sSortParams%>Formlist_Page=<%=iPage - 1%>#list"><font style="font-size: 10pt; color: #000000; font-weight: bold; font-family: Arial, Tahoma, Verdana, Helvetica">Previous</font></a>
<%
end if
response.write "&nbsp;[&nbsp;" & iPage & "&nbsp;]&nbsp;"

if bEof then
%>
<font style="font-size: 10pt; color: #000000; font-weight: bold; font-family: Arial, Tahoma, Verdana, Helvetica">Next</font>
<%
else
%>
<a href="<%=file_name%>?<%=form_params%><%=sSortParams%>Formlist_Page=<%=iPage + 1%>#list"><font style="font-size: 10pt; color: #000000; font-weight: bold; font-family: Arial, Tahoma, Verdana, Helvetica">Next</font></a>
<%
end if
end if
'-------------------------------
' list Navigation end
'-------------------------------

2.asp
has just a variable sActionField="1.asp"
which if delete update pressed would point to this variable and take it to the first page ..

hope that helps
 
Doh, I don't know him from me! I think its time for lunch!
 
ok now i tried that..this is wht is happening:
i set the link in 1.asp as u told me to (a href="2.asp?ID=6723&s_company=&Formlist_Page=2#list">Tom</a>)
Then i pointed the url in 2.asp as u told me to do..
now the after said and done that...

i click on one item on 1.asp and it takes me to

but shows nothing on the page for me to update/delete

now i remove these changes and reload my original page ..
after cliking on the same item it goes to the same link:
and shows the detials of update/delete..

any idea why its not working??/

-Smita
 
look at your 2 examples do you see any difference (2.asp, 1.asp)
 
one link has 2.asp then other has 1.asp - if thats what your comparing, they are not going to be same
 
sorry ..page cannot be displayed...error is showing up..its the normal error we can see if say there in no internet connection and if we try to acess a page...H404 error comes up saying that the page u have requested cannot be found..

i will run it on the server and let u know the actuall error as till now i was not running on the server under localhost..i was runing it online..
 
Oh, just needs a space.

I like to put spaces around the ampersands because it helps keep me straight, especially when building a QueryString.
 
ok now this is the page i am on

from here (after the modification prior to adding #list discussion)
i go to the screen this time where i can update/delte..i pressed the button update and it took me to this url:

its somehow not catching the page number..

this is the url i have givem on sActionFile name
sActionFileName =" & request("s_company") & "&Formlist_Page=" & request("Formlist_Page")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top