I have 2 pages both are using Gridview and implemented in C# asp.net.
On page 1, in the Gridview (ie, Edit, Delete enable) when I click Edit so I have a Textbox which allow me to
edit the text in the textbox that populated from the database and next to it I have a button when click I need
to open a page 2 where user can select a row (ie, page 2 also use Gridview, Select enable and use
different datasource ), once user select a row I need to get the value row.cells[1] for example and put the value
into the textbox in page 1 and page 2 close itself. the purpose of page 2 serve as a look up table and for user
to select a row, then display that value in the textbox in page1.
I can get the value on page 2 when user select a row but I dont know how to implement such when user
select a row and get the value on page 2 and put the value into the textbox in page 1 and page 2 close itself.
any suggestion and guidance is greatly appreciated.
thanks in advance.
BrigideW
Member
187 Points
138 Posts
Retrieve select row.cell from Gridview and display in Textbox
Dec 15, 2007 01:00 PM|LINK
Hi all,
Pls help with this issue:
I have 2 pages both are using Gridview and implemented in C# asp.net.
On page 1, in the Gridview (ie, Edit, Delete enable) when I click Edit so I have a Textbox which allow me to
edit the text in the textbox that populated from the database and next to it I have a button when click I need
to open a page 2 where user can select a row (ie, page 2 also use Gridview, Select enable and use
different datasource ), once user select a row I need to get the value row.cells[1] for example and put the value
into the textbox in page 1 and page 2 close itself. the purpose of page 2 serve as a look up table and for user
to select a row, then display that value in the textbox in page1.
I can get the value on page 2 when user select a row but I dont know how to implement such when user
select a row and get the value on page 2 and put the value into the textbox in page 1 and page 2 close itself.
any suggestion and guidance is greatly appreciated.
thanks in advance.