[thelist] VB.NET: Passing Values from a DataGrid

Casey aspnet at thecrookstons.com
Fri Aug 12 13:21:43 CDT 2005

I have a datagrid losing a bunch of doctors.  The user needs to be able to
select one of the doctors to view more details.  Rather then passing the
value doc_id to a new page, I want to keep it all on the same page and
display the details in a different panel.

I'm having trouble knowing what kind of column to use.  I could use a
HyperLinkColum as such:

<asp:HyperLinkColumn Text="view" DataNavigateUrlField="doc_id"
DataNavigateUrlFormatString="default.aspx?doc_id={0}" HeaderText="Details"

But I'd rather not pass the doc_id in a querystring, and this seems
inefficient to call the same page anyway... I want to call a sub routine
instead.  I could use a ButtonColumn, but I'm not finding any way to pass
the doc_id.

What am I overlooking?


More information about the thelist mailing list