Click here to Skip to main content
15,846,144 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i importing excel data in gridview further i want to pass gridview row selected data on another page for printing purposr how to do? in asp.net c#
Posted
Comments
BulletVictim 5-Aug-14 1:32am    
Fast but dirty I would say pass it along in the url.
response.redirect("www.mysite.com/mypage.aspx?VALUE1="+gridview selected row cell 1 value"+&VALUE2="gridview selected row cell 2 value"
then on the new page retrieve the data using request.querystring("VALUE1") and set it to a variable on the page( string value1 = request.QueryString("VALUE1"); int value2 = request.QueryString("VALUE2") )

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