Error:input string was not in a correct format

1 posts, 0 answers
  1. shervinrv
    shervinrv avatar
    10 posts
    Member since:
    May 2007

    Posted 01 Nov 2014 Link to this post

    i have a autocompletebox . when i type a character i get this error : input string was not in a correct format

    <telerik:RadAutoCompleteBox ID="acpstudents" Runat="server" DataSourceID="st" DataTextField="name" DataValueField="id" InputType="Text" MaxResultCount="10">
              <asp:SqlDataSource ID="st" runat="server" ConnectionString="<%$ ConnectionStrings:dbconnection %>" EnableCaching="true" SelectCommand="SELECT [name]+' '+[lname] as name,[lname],[scode],[codemelli],[id] FROM [students] WHERE ([schoolid] = @schoolid)" SelectCommandType="Text">
                      <asp:CookieParameter CookieName="schoolmanager" Name="schoolid" Type="Int32" />

    Thank You
Back to Top