Last post Sep 01, 2007 02:56 PM by timvw
Jul 18, 2007 10:01 AM|surenb|LINK
I stuck with the finding whether my page (originalpage.aspx) has just URL Refferer . If it doen't have URL Refferer, it should return to somepage.aspx. If it has URL refferer it should return to the originalpage.aspx
I have added the below to my web.config
Now myproblem is the originalpage.aspx is getting looped, Can anyone please tell me how to come out the loop after checking once.
Aug 28, 2007 07:20 AM|ziqbalbh|LINK
Don't redirect to OriginalPage.aspx, or in simple terms don't use your else part.
Sep 01, 2007 02:56 PM|timvw|LINK
If the browser doesn't send the header, it's very unlikely that it will send the header when it's redirected.. (Thus, he requests the page again (still without the header), and gets redirected (go back to beginning of sentence))