E
eRic
I have a datagrid with a hyperlinkcontrol column. And it will only take one
parameter. So I created a template column, with a hyperlink based on an
example I saw. (now working directly in the aspx page as opposed to the code
behind) It uses the NavigateURL and then useses
Container.DataItem("itemName") to set the item values inline (so
'someUrl.com?item=.' + Container.DataItem("itemName") ) First off I'm doing
this in C# so I changed the call to Container.DataItem["itemName"]. Now it
throwsa HTML excepetion because the "object" cannot be index. any
suggestions on how to do this. I have tried casting the container but to no
avail.
My overall goal is to pass 2 parameters in a query string of a hyperlink
that is embeded in a datagrid.
THANKS!!
eRic
parameter. So I created a template column, with a hyperlink based on an
example I saw. (now working directly in the aspx page as opposed to the code
behind) It uses the NavigateURL and then useses
Container.DataItem("itemName") to set the item values inline (so
'someUrl.com?item=.' + Container.DataItem("itemName") ) First off I'm doing
this in C# so I changed the call to Container.DataItem["itemName"]. Now it
throwsa HTML excepetion because the "object" cannot be index. any
suggestions on how to do this. I have tried casting the container but to no
avail.
My overall goal is to pass 2 parameters in a query string of a hyperlink
that is embeded in a datagrid.
THANKS!!
eRic