Click to See Complete Forum and Search --> : From a Datagrid to a Form


Dark_AngeL
05-25-2006, 06:32 AM
Hi :hi:

I am trying to pass values from a datagrid to form

In the datagrid page I did this

<asp:HyperLinkColumn Text="Edit" DataNavigateUrlField="ItemNo" DataNavigateUrlFormatString="ItemsDetails.aspx?ItemNo={0}" DataTextField="ItemNo" HeaderText="Settings"></asp:HyperLinkColumn>


And in the form page I did this

Public Sub Page_Load(Source As Object, E As EventArgs)
Response.write(Request.QueryString("ItemNo"))
End Sub

Ok I get the ItemNo in the begining of the form but I want it to appear in a readonly textbox I have txtItemNo.Text

But how can I do it? :rolleyes:

Dark_AngeL
05-25-2006, 08:27 AM
Please I need help urgently please

handshakeit
05-26-2006, 03:36 AM
Simply
txtItemNo.Text=Request.QueryString("ItemNo")
instead of
Response.write(Request.QueryString("ItemNo"))
at the page load