You are correct.
You are limited to 1.
=============== =============== =============== ===============
Here is how I get around it:
=============== =============== =============== ===============
In my grid I use this:
=============== =============== =============== ===============
<asp:TemplateCo lumn SortExpression= "statustext " HeaderText="Sta tus">
<HeaderStyle HorizontalAlign ="Center"></HeaderStyle>
<ItemStyle HorizontalAlign ="Center"></ItemStyle>
<ItemTemplate >
<asp:Hyperlin k id="hylStatus" runat="server"> </asp:Hyperlink>
</ItemTemplate>
</asp:TemplateCol umn>
=============== =============== =============== ===============
In my code behind I use this:
Private Sub dg_ItemDataBoun d(ByVal sender As System.Object, ByVal e As
System.Web.UI.W ebControls.Data GridItemEventAr gs) Handles dg.ItemDataBoun d
If e.Item.ItemType = ListItemType.It em Or e.Item.ItemType =
ListItemType.Al ternatingItem Then
'need to take paging into account!
Dim mIndex As Integer = CType(sender, DataGrid).PageS ize *
CType(sender, DataGrid).Curre ntPageIndex + e.Item.ItemInde x
'set Status hyperlink
Dim oHylStatus As HyperLink = CType(e.Item.Fi ndControl("hylS tatus"),
HyperLink)
'hide the link if the Status is "xyz", otherwise show it:
If myBizObj(mIndex ).status = "xyz" Then
oHylStatus.Navi gateUrl = ""
Else
'custom javascript function for opening a new window.
oHylStatus.Navi gateUrl = "javascript
:New Win('ViewStatus .aspx?Key=" &
myBizObj(mIndex ).key & "&Type=" & myBizObj(mIndex ).type &
"','MyStatus',0 ,0,640,480);"
End If
oHylStatus.Text = myBizObj(mIndex ).statustext
....
=============== =============== =============== ===============
--
Joe Fallon
"Martin Dew" <re************ ************@ad astra.co.uk> wrote in message
news:eQ******** ******@TK2MSFTN GP10.phx.gbl...
I have a HyperLinkColumn inside my Databound grid on a page, I have been
using the URL Field property set to a field name in my bound data, and
then using the URL Format String as dbClientconn.as px?searchID={0} and all
works perfectly, however I need to set this to have to fields values in the
string,
something like;
URL Field: ClientConnectio nField, ClientCustomerR efField
URL Format String: dbclientconn.as px?searchID={0} &custref={1}
However this does not work, it would appear you can only use one format
placing {0}. Can someone tell me if you can do it and how ?
Thanks
Martin