[thelist] 1/2 Way - Passing Values from a DataGrid
Casey
aspnet at thecrookstons.com
Fri Aug 12 13:48:52 CDT 2005
Okay, I got the first half figured out:
DataTextFormatString="doc_id"
Now, how do I retrieve this value in the subroutine?
Casey
----- Original Message -----
From: "Casey"
> 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?
>
> TIA!
More information about the thelist
mailing list