Click here to Skip to main content
15,905,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
From the response of a datagrid button in asp page1 was redirected to asp page2, i cant get the page1 datagrid row [1] to textbox in page2.Could you please help me.
Posted
Comments
Kornfeld Eliyahu Peter 21-Dec-14 8:41am    
Because there is no datagrid in page2...
Send the relevant data from page1 to page 2 upon redirection if you need it...

 
Share this answer
 
Comments
ridoy 22-Dec-14 1:37am    
5ed!
Abhinav S 22-Dec-14 1:42am    
Thank you.
hi @yes Kumar,
I guess you want to fill value of a datagridview row in textboxes to update or delete data. I have 2 solutions:

1. Using query strings. You can refer 2 link @Abhinav S suggest. But I don't think that a best solution.
2. You can try to make a pop-up or use jquery to hide, show textboxes in page1. I'm using this way.

Hope it can help you.
 
Share this answer
 
Their are several techniques to pass data from one page to another page
1. Cross page posting :

a.asp net button have postback url property.
b.This property need a url(page2) as string parameter.
c.then in page 2 You can find the controls of page 1

gridview gd=(gridview)previouspage.findcontroll("controls id of first page")

2.Use session Variables or query string or cookies
 
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