F
Fred Nelson
Hi:
I have a VB.NET web app and in one section I'm creating a datagrid that
lists several id's and names - I would like to be able to send the user to
another web page if only one record matches the search criteria:
The class lib returns two fields "custid" and "custname" - I need to obtain
the custid to go to the next web page.
=======
dim lookup function as new getcusts.search
DataGrid1.DataSource = lookup.searchnames(getinformation)
DataGrid1.DataBind
if DataGrid1.Items.Count = 1
// get the value and use it to go to another web page.
response.redirect("nextpage.aspx?custid=" + custidvalue.tostring)
end if
Any help would be greatly appreiciated - I haven't found a way for this to
work!
Thanks,
Fred
I have a VB.NET web app and in one section I'm creating a datagrid that
lists several id's and names - I would like to be able to send the user to
another web page if only one record matches the search criteria:
The class lib returns two fields "custid" and "custname" - I need to obtain
the custid to go to the next web page.
=======
dim lookup function as new getcusts.search
DataGrid1.DataSource = lookup.searchnames(getinformation)
DataGrid1.DataBind
if DataGrid1.Items.Count = 1
// get the value and use it to go to another web page.
response.redirect("nextpage.aspx?custid=" + custidvalue.tostring)
end if
Any help would be greatly appreiciated - I haven't found a way for this to
work!
Thanks,
Fred