This is a discussion on "Passing values from Datagrid to another form" within the ASP.NET Forum section. This forum, and the thread "Passing values from Datagrid to another form are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Passing values from Datagrid to another form
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Passing values from Datagrid to another form
I am trying to pass values from my datagrid from one form (webform1.aspx) to another form (webform2.aspx), but I don't want to transfer the data to another datagrid. I want them to display in text boxes on the second form (webform2.aspx). I am using a DataSet to populate the datagrid.
Caryma |
|
|
|
|||
|
Have you tried an editable datagrid? Its a built-in feature, which means you dont need 2 seperate webforms.
|
|
|||
|
Smookie,
I think I understand what you are talking about. In that case would it just display the select record in the datagrid? If so I am trying to accomplish passing the value of the record to a form that doesn't have a datagrid and more of your generic input form. caryma |
|
|||
|
I have also tried to pass the value using variables.
I have created a pushbuttom column on the datagrid with CommandName cmdEdit. I used the following code to handle the event: Private Sub cmdEdit(ByVal Sender As Object, ByVal E As DataGridCommandEventArgs) Dim strssn As String = E.Item.Cells(0).Text Dim strName As String = E.Item.Cells(0).Text Response.Redirect("new_hire_update.aspx?SSN=" + strssn) Everytime I push the button it just opens the same page new_hire_view.asp which is the original page with the datagrid |
|
|||
|
sounds to me like you simply need a HyperLinkColumn in your datagrid:
for example:
|
![]() |
| Tags |
| passing, values, datagrid, form |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing variables values using POST | sudhakararaog | Web Page Design | 2 | Mar 18th, 2008 08:12 |
| Taking values from a form without sending it... | Mazinger | JavaScript Forum | 4 | Jan 8th, 2008 18:39 |
| Setting Form Values to Previously Entered Values | masonbarge | PHP Forum | 6 | Oct 17th, 2006 17:36 |
| form not updating values | djanim8 | Classic ASP | 0 | Dec 10th, 2005 19:05 |
| Passing form variable between pages | rhoov | Classic ASP | 8 | Dec 16th, 2003 14:59 |