chekuriraju:When clicked on back button it will be redirected to a page normally,but when i change index of drop downlist in my page and then click on back button i get a eror saying page cannot be displayed.what could be the problem???
Hi chekuriraju,
Base on my understanding, it seems the the button is the browser's back button, if so, it is hard to control, it is the behavior of browsers, and it depend on browsers.
So I suggest you use the following two ways to instead of the back button:
1. Use Javascript, history.go(-1)
2. Use AJAX control, the History control.
Note:
History control is an AJAX control, see the introduction:
One problem faced by a typical AJAX application is that a partial page update is not added to the history of the Web browser. This means that the browser’s Back button does not move back one AJAX step, but moves back one entire document, which is unlikely to be what the user expects. The ASP.NET AJAX History control allows the developer to insert history points so that the user may click the browser’s Back and Forward buttons to move between AJAX steps.
To know more, please visit this link: http://www.asp.net/learn/ajax-videos/video-149.aspx
PS:
1.You need to install AJAXControlTookit in your computer if you want to use AJAX control, please check out this link to download the toolkit: http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx?ReleaseId=8513
2.Please check out this video if you do not know how to install AJAXControlTookit: http://download.microsoft.com/download/9/d/8/9d8a3ff9-e520-4c69-a7a0-aad7a3dc596d/HDI-02-GetStarted-AJAX-Toolkit.wmv
Hope it helps,
Hong Gang