variable Hyperlink in datagrid
-
Hi All, I m trying to create a variable hyperlink in a datagrid.... this is the code...
**<-- DataBinder.Eval is not working, it is displaying as it is------->** HyperLinkColumn Target="_self" DataNavigateUrlField="prod_num" DataNavigateUrlFormatString="cardinfo.php?prodnum=<%# DataBinder.Eval(Container.DataItem, 'prod_num')%>" DataTextField="sku" HeaderText="sku"> **<------------------------------------------>**
I have removed the asp:HyperLinkColumn tag from here, because it was not displaying in the browser... 'prod_num' is the column name comming from databse.... Thanks in advance for your help. Suman Singh -
Hi All, I m trying to create a variable hyperlink in a datagrid.... this is the code...
**<-- DataBinder.Eval is not working, it is displaying as it is------->** HyperLinkColumn Target="_self" DataNavigateUrlField="prod_num" DataNavigateUrlFormatString="cardinfo.php?prodnum=<%# DataBinder.Eval(Container.DataItem, 'prod_num')%>" DataTextField="sku" HeaderText="sku"> **<------------------------------------------>**
I have removed the asp:HyperLinkColumn tag from here, because it was not displaying in the browser... 'prod_num' is the column name comming from databse.... Thanks in advance for your help. Suman Singh