Click here to Skip to main content
15,914,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir

I want to bind gridview when i responce.redirect in rowcommand() event on new page.
in new page i want to bind previous page gridview after performing some calculation please help me...

thanks.
Posted
Comments
Timberbird 16-Nov-11 2:20am    
What do you want to bind it to? You're already on new page, why would you want to do something with previous page?
Besides, do you actually have to use Response.Redirect()? It sends 302 response code to the browser, making access to redirecting page more difficult. Server.Transfer() or form's action attribute, on the other hand, provide you with access to the PreviousPage object

If you do response.redirect() your prevous page is completely destroyed and only new page is constructed, you can not access anything from the previous page.. in your new page...

store the data (in session, cookies or query string) before transmitting to new page, and access them from the storage.

prevous page data can be accessed in cross page posting...
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900