Wednesday, March 21, 2012

loading another page using AJAX

Hi All,

I am new to AJAX. I have two pages:login.aspx andindex.aspx. I am able to redirect user from login.aspx to index.aspx after successful login. But I would like to know is there any way to load index.aspx over login.aspx (so that it should not post back the page). Means, when I redirect user from one page to another page, browsers Back button gets enabled because page is being changed. If page gets loaded over same page using AJAX then there will be no post back. So, browsers Back button will remain disabled. Is there any way to do this?

Thanks

Sumit

Hi Sumit,

Well there is no way that you can redirect to other pages without a page flickering. Ajax supports partial page updates which means that parts of page can be refreshed but the user stays on the same page. There is a control available which is called "history" this control should make the back button available.

Hope this helps.

Regards,

No comments:

Post a Comment