I have looked for other solutions here on StackOverflow but i cant seem to figure it out. I have this linkbutton in a datagrid:
<asp:LinkButton
ID="lnkname" runat="server"
Text='<%#Eval("Titel") %>'
PostBackUrl='<%#"Details.aspx?ID="+Eval("ID").toString()%>'
CausesValidation="false">
</asp:LinkButton>
and this is the paramater:
<asp:ControlParameter ControlID="txtTitel" DefaultValue="*" Name="Titel"
PropertyName="Text" Type="String" ConvertEmptyStringToNull="False" />
I want to take the ID value to the next page : details.aspx but i get the following error:
Input string was not in a correct format. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
I know it has something to do with ID being a INT but I cant figure out how to fix it.
NOTE: I do it in VB.NET