I am using Datagride and I have a 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 querystring. Thanks