lpatnaik
Programmer
- Jul 11, 2002
- 53
Hi,
I am trying to send a value to a javascript function as a parameter and invoke the function too as below:
<asp:HyperLinkColumn NavigateUrl="javascript:funShowTCDetails('<%# DataBinder.Eval(Container.DataItem,"TC_ID"%>');" DataTextField="TC_ID" ItemStyle-Width="50px" HeaderText="ID" HeaderStyle-CssClass="datagridHeaderCapstyle" FooterStyle-CssClass="try">
<ItemStyle CssClass="capstyle"></ItemStyle>
</asp:HyperLinkColumn>
I dont know why its not working, i am getting all sorts of parser errors such as :
Literal content ('<asp:HyperLinkColumn NavigateUrl="javascript:funShowTCDetails('') is not allowed within a 'System.Web.UI.WebControls.DataGridColumnCollection'
I am trying to send a value to a javascript function as a parameter and invoke the function too as below:
<asp:HyperLinkColumn NavigateUrl="javascript:funShowTCDetails('<%# DataBinder.Eval(Container.DataItem,"TC_ID"%>');" DataTextField="TC_ID" ItemStyle-Width="50px" HeaderText="ID" HeaderStyle-CssClass="datagridHeaderCapstyle" FooterStyle-CssClass="try">
<ItemStyle CssClass="capstyle"></ItemStyle>
</asp:HyperLinkColumn>
I dont know why its not working, i am getting all sorts of parser errors such as :
Literal content ('<asp:HyperLinkColumn NavigateUrl="javascript:funShowTCDetails('') is not allowed within a 'System.Web.UI.WebControls.DataGridColumnCollection'