Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Changing databound gridview field to hyperlink- need 2 more params

Reply
Thread Tools

Changing databound gridview field to hyperlink- need 2 more params

 
 
RJ
Guest
Posts: n/a
 
      08-29-2006
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
 
Reply With Quote
 
 
 
 
JeffP@Work
Guest
Posts: n/a
 
      09-12-2006
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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
databound custom controls vs composite databound custom controls rodchar ASP .Net 0 11-26-2007 03:51 PM
Gridview row databound event - can't get past the 1st row of gridview maurban@gmail.com ASP .Net 5 10-13-2006 09:37 PM
databound and hyperlink field needed in gridview Carlos ASP .Net 1 06-08-2006 04:17 AM
templated databound control problem - not showing databound Manu ASP .Net Web Controls 0 05-22-2006 09:46 AM
params v.s. @params in rails? Barry Ruby 9 09-15-2005 03:12 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57