property in my mainClass
public Int64 DetailID
{
get { return bintDetailID; }
set { bintDetailID = value; }
}
myClass
mainClass obj=new mainClass();
obj.DetailID = int.Parse(e.CommandArgument.ToString());
aspx page
<asp:Button ID="btnEdit" Text="Edit" CommandArgument='<%#Eval("DetailID") %>'
CausesValidation="false" CommandName="Edit" Visible="false" runat="server" OnCommand="btnEdit_Click"/>
Isn't this how u convert string to int ?
int.Parse(e.CommandArgument.ToString());
Whats wrong ? plz help..thnx