This is a known limitation of the hyperlink column.
It will only take 1 parameter.
Try using a template column instead:
================================================== ==========
<asp:TemplateColumn SortExpression="mynumber" HeaderText="My Number">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:Hyperlink id="hylMyNumber" runat="server"></asp:Hyperlink>
</ItemTemplate>
</asp:TemplateColumn>
================================================== ==========
Then in code behind you can use: (mColl is custom collection object.)
================================================== ==========
Private Sub dg1_ItemDataBound(ByVal sender As Object, ByVal e As
DataGridItemEventArgs) Handles dg1.ItemDataBound
If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType =
ListItemType.AlternatingItem Then
'need to take paging into account.
Dim mIndex As Integer = CType(sender, DataGrid).PageSize *
CType(sender, DataGrid).CurrentPageIndex + e.Item.ItemIndex
Dim obj As HyperLink = CType(e.Item.FindControl("hylMyNumber"),
HyperLink)
obj .NavigateUrl = "javascript
:LeftSideWin('ViewNum.aspx?Key=" &
mColl(mIndex).key & "&KeyType=" & mColl(mIndex).type & "','MyWin');"
obj .Text = mColl.(mIndex).mynumber
End If
End Sub
================================================== ==========
--
Joe Fallon
"sincethe2003" <sc*****@yahoo.com> wrote in message
news:eT*************@TK2MSFTNGP09.phx.gbl...
Hi, in the following example:
-----------
<asp:HyperLinkColum
HeaderText="Select an Item"
DataNavigateUrlField="IntegerValue"
DataNavigateUrlFormatString="detailspage.aspx?id={ 0}"
DataTextField="PriceValue"
DataTextFormatString="{0:c}"
Target="_blank"/>
-----------
there is only one parameter "id" to transmit,
how do I send two parameters using HyperLinkColumn?