However want I want to do is pass a different column's values (also returned
by the stored procedure) to the Target Page when the user selects
the defined Hyperlink column. So display one value (this is an abbreviated
description) but pass a string of key values that corresponed to the
abbreviated description.
Can this be done using the DataGrids Hyperlink Column Property? If not how
else can it be done?
Thanks Brent
"Brent Stevenson" <stev...@admworld.com> wrote:
Jim Ross
MS MVP [VC/MFC]
To send email, change 'lotsofspamthroughhere' to 'msn' but please ask all questions in the newsgroups, not via private mail
Thanks Brent
"Jim Ross [MVP]" <ro...@lotsofspamthroughhere.com> wrote in message
news:d4p19u8pvdh6helt6...@4ax.com...
In the aspx:
<asp:hyperlink
urlformatstring='<%# BuildURLString(Container.Dataitem)%>' />
In the codebehind: [I may not have the type exactly correct on the
input parm here]
Protected Function BuildURLString(row As DataRow) As string
' code to get values from the datarow and build the string
' might look something like
Dim retval as String
retval = "myTarget.aspx?ID="
retval += row("RecID").ToString
retval += "&Parms="
retval += other junk from the DataRow
return retval
End Function
Does this help?
"Brent Stevenson" <stev...@admworld.com> wrote:
>Thanks Jim for the info. Do you have an example?
>
>"Jim Ross [MVP]" <ro...@lotsofspamthroughhere.com> wrote in message
>news:d4p19u8pvdh6helt6...@4ax.com...
>> I am doing this by binding the URLFormatString to a function in the
>> code-behind that takes "Container.Dataitem" as a parameter and returns
>> the formatted strong.
>>
Jim Ross