Getting Last Visited Page in PHP/JS

It is very common that we browse through no of pages and each visited page has the button which takes the user back to previous link.

Browser’s Back button is good option with static pages but for dynamic pages it doesn’t refreshes the page. So the better option is to

1. Either save the previous link and set that value to action of back button OR

2. Use the Javascript function “window.back()” which returns the last visited address.

th of these techniques not only takes you to the last visited link but will also refreshes page.

— 

Keep Smiling 🙂

Page Loads twice for a single click ASP.NET 2.0

Today i was writing an application which was bringing data from the webservice provided by AMAZON.COM.
What it was doing is that it was fetching records of a products like price, sku etc.. and its image url. I was displaying that product information in labels and an image in a image control.
What happens then was that first page was laoded putting information in labels and then refreshes again to display the image and when it was loading image it doesn’t loads the page as a result of post back and thus refreshes some of my data.
So if this things happens to you, i mean if your pages loads two time then there must be some controls which are causing this load two times. so check them out.

Posted in ASP.NET. 1 Comment »