sharing information between two pages
-
Hello Friends! Actually I have a page which contain record in a grid view. I want to put the button. after clicking the button that details available on grid view will be exactly appeard on next page. please solve it. thanx
If the data is not so much heavy , just put the data in a session variable and retrieve it on other pages .
cheers, Abhijit CodeProject MVP My Blog :Abhijit's World of .Net
-
Hello Friends! Actually I have a page which contain record in a grid view. I want to put the button. after clicking the button that details available on grid view will be exactly appeard on next page. please solve it. thanx
The obvious way to do this is to make both pages controls and then let viewstate handle it. Of course, if all you want is for the second page to show the data of a grid view row, and nothing else, then just link to a page with an id in the URL that you use to pull the data from the DB. This is ASP.NET 101, so I hope you're a beginner doing a course and not being paid for your work.
Christian Graus Driven to the arms of OSX by Vista.
-
The obvious way to do this is to make both pages controls and then let viewstate handle it. Of course, if all you want is for the second page to show the data of a grid view row, and nothing else, then just link to a page with an id in the URL that you use to pull the data from the DB. This is ASP.NET 101, so I hope you're a beginner doing a course and not being paid for your work.
Christian Graus Driven to the arms of OSX by Vista.
there are several ways to achieve this using sessions,querystrings and gridview built in hyperlink field add it and give destination url your selected row values will be passed to next page automatically in the form of querystring.
umerumerumer
-
The obvious way to do this is to make both pages controls and then let viewstate handle it. Of course, if all you want is for the second page to show the data of a grid view row, and nothing else, then just link to a page with an id in the URL that you use to pull the data from the DB. This is ASP.NET 101, so I hope you're a beginner doing a course and not being paid for your work.
Christian Graus Driven to the arms of OSX by Vista.
-
thanx a lot: Actually It is first to me to use session or query string so, i couldn't get what am i do. If ppssible ,then please guide me through some code or guidance
For Session Check this link[^] for Querystring Check this link[^]
Cheers!! Brij