In using a page with IFrame, I woudl like to write a line like this: If (certain criteria met) then response.redirect(somepage.asp) end if
Pretty simple, except that I would like to make it to the full page. In other words, if it were a regular HTML hyperlink, the code would be <a href=somepage.asp? target="_parent">
Is there a way to specify targets in ASP redirects?
Code: response.redirect(request.querystring("page")) It worked fine because I didn't need to pass on any other values from the querystrings. But now, I need something that will redirect the page and pass all querystring values. I tried this:
Code: response.redirect(request.querystring("page") & "&" & request.querystring) But it brings me to something like this: http://www.site.com/thepage.asp&page%3D/thepage.asp&id%3D7 instead of what I would like for it to say: http://www.site.com/thepage.asp&page=/thepage.asp&id=7
Now.... I know that I could have written:
Code: response.redirect(request.querystring("page") & "&id=" & request.querystring("id")) But that won't work because I actually have many querystrings and I won't know which ones are used, etc. I want it to just transfer all the querystring data.
Oh, and if the redirect could take out the "page" querystring.. that would be great. Because I don't need it.. it is only used to know what page to go to. I just need to keep all the other querystrings.
I' currently making a time and movement site for our department.I would like for the user to use a login page,once they log in I want them to be directed to a personnal home page that allows to add and view their current week movements.How would I proceed I built a login page, once the login is validated it redirects to home.aspx. In the home aspx what would the coding for the home page to retreive the date related to the particular employee without having the employee to retypr his login information in a search form.
I have my entire ASP-driven site in a one-frame frameset to preserve a static URL in a browser's address bar. I also have a customized 404 page to redirect a visitor to the top, default frameset.
The redirect works, but the called, nonexistent URL remains in the browser's address bar. Is there any way to refresh a browser's address in the address bar to that of the site's default, frameset address? I tried using a window.location-type javascript, but the redirects get stuck in a perpetual loop.
If I use response.redirect, is the entire page read before the page is redirected? For example, assume I have this code where the response.redirect is located before the objConn.Close line:
Set objConn = Server.CreateObject("ADODB.Connection") objConn.Open "sampleDSN"
response.redirect("default.asp")
objConn.Close Set objConn = nothing
Will the page be redirected before the database is closed?
On allot of professional web sites, i have notised that When you are looking for something on the site and it needs you to login first before you can see the content, when you do login it knows exactly where to take you before you loged in, how do they do this??? what type of code do they use??? i would love to apply it to my site.
Does anyone have a successful experience in using XMLHTTP or ASPtear to read a cookie on another domain? Can it be done at all using these or similar technologies or can it only be done using the redirect trick?