title: Need help with the format exception::Input string was not in a correct format
body: <p>property in my mainClass</p>
  
  <pre><code>  public Int64 DetailID
          {
              get { return bintDetailID; }
              set { bintDetailID = value; }
          }
  </code></pre>
  
  <p>myClass</p>
  
  <pre><code>mainClass obj=new mainClass();
  obj.DetailID = int.Parse(e.CommandArgument.ToString());
  </code></pre>
  
  <p>aspx page</p>
  
  <pre><code>&lt;asp:Button ID="btnEdit" Text="Edit" CommandArgument='&lt;%#Eval("DetailID") %&gt;'
  CausesValidation="false" CommandName="Edit" Visible="false" runat="server" OnCommand="btnEdit_Click"/&gt;
  </code></pre>
  
  <p>Isn't this how u convert string to int ?</p>
  
  <pre><code>int.Parse(e.CommandArgument.ToString());
  </code></pre>
  
  <p>Whats wrong ? plz help..thnx</p>