Changing databound gridview field to hyperlink- need 2 more params

R

RJ

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?
 
J

JeffP@Work

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.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top