Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3232610
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:10:52+00:00 2026-05-17T17:10:52+00:00

property in my mainClass public Int64 DetailID { get { return bintDetailID; } set

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:10:53+00:00Added an answer on May 17, 2026 at 5:10 pm

    Assuming that your Button object is NOT within a databound control like a grid / repeater,
    AND If you are trying to Bind the button using the DetailID property, check the following:-

    1. Assuming your button is in testPage.aspx, the codebehind class for testPage.aspx i.e class testPage should have a property of type Int64 called DetailID.
      eg : Int64 DetailID get; set;

    2. Assuming mainClass is some custom class of yours, somewhere in Page_Load, you will have to do a this.DetailID = mainClassObject.DetailID; where this = instance of your page.

    3. In your page_load method, additionally, you will have to do a Page.DataBind(). This is because a non-databound control like button does not have its own DataBind() method.

    Note 1: If your testPage.DetailID = Int32 / int, you will need to do the conversion in the setter method or before that as y0ur mainClass is an Int64

    Note 2: From your comments, you seem to be saying that Int64 doesnt exist. Which is weird!
    Try using the fully qualified name i.e System.Int64 and see if that works!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I try to implement a get-set-property with a body and use that set,
Imagine these two classes: class Part { public string Name { get; set;} public
any property can set the pin in google map bigger? from what i know,
i've create a class having List as a property here's the code public class
@property (nonatomic, readonly) BOOL isBlabla; When speaking about properties I'm not sure what the
@property (retain) NSString *testString; self.testString = [[NSString alloc] initWithString:@aaa]; [self.testString retain]; self.testString = [NSString
orm property name=poiLat ormtype=big_decimal notnull=true persistent=true precision=16 scale=14; property name=poiLong ormtype=big_decimal notnull=true persistent=true precision=16
Which property should I change on Info.plist in order to configure the list of
activeElement property of the document object sets current element that has the keyboard focus.
I have a hidden property which is fetched from ebean. how do i pass

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.