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