I am using datagrid and I have a <asp:TemplateField> I have passed some parameters in it the code is as follow:
<asp:TemplateField HeaderText="Download">
<ItemTemplate>
<asp:LinkButton ID="lnkname" runat="server" Text="Download" PostBackUrl='<%#"~/logout.aspx?ID="+Eval("ID")+"&category=mobile"%>'></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
I have numeric field (ID) which i need to send through URL I have tried to send the String type data and its working fine but while I am sending numeric type (ID) I am facing this error
Conversion from string "~/logout.aspx?ID=" to type 'Double' is not valid
I know something I need to change in the syntax near Eval("ID"). How should I send numeric data in query string?
Thanks