Dear,
If u redirect from any of ur page to another, it loses all of its values and can't be retained. When u r clicking 'Back' button u r redirecting to ur homepage and it loads all of its contents as in initial page load.
Anyway, U can cope ur task by following to methods(1st one is most appropriate, easy and efficient).
1) Write function in .aspx file like below:
<script language=javascript type="text/javascript">
function GoBack()
{
window.history.back();
}
</script>
On page load of new page add attribute of 'Back' button for onclick.
2) Other way is to pass DDL value as QueryString and retain back this value when back button is clicked.
Please do inform me if it is helpful.
Regards,
Ali Irfan
|