RJ,
I'm not sure if your issue is exactly where I'm at, but it appears that it
is similar to your question.
I'm using using in the dg, DataKeyField="UserID" that is not shown in the dg
and also a hidden column for any other needed but not displayed info to
manage dg events.
I too need more than just an index field to go onto the nxt step as well as
beging able to program a "Back" button, javaScript goBackHistory(-1)on our
phones is unreliable.
Then in the .vb to get the userID (always unique) for the sProc rather than
the StaffFullName which is displayed and may not be unique....
Dim UserID As String = dg.DataKeys(e.item.ItemIndex)
Then to get the next step, I've suffixed the commands
CommandName="SomedgSMFC" for SalesManager datagrid, FutureCalls, which
SalesPerson is the UserID.
Dim sCoMander as string = rith(e.CommandName,4)
HTH
JeffP.....
"RJ" <> wrote in message
news:062F9A84-A588-4A74-B095-...
> Please help...
> I am trying to make a databound field in a datagrid link to another page
> that expects 3 parameters. 2 parameters are in the URL (constant from
> datagrid to new page), and the other is in the datasource and should pass
> the
> ID of the record they click. My research so far says to use parameters
> from
> the datasource... Is there a way to reference the URL parameters in the
> DataNavigateUrlFields/DataNavigateUrlFormatString instead of having to add
> them to my datagrid's datasource?
> --
> Thanks,
> RJ - VS 2005 Newbie
|