Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: Company Name Field

  1. #1
    Web Design Magic is offline Junior Member
    Join Date
    Aug 2008
    Posts
    12

    Default Company Name Field

    Hi,

    I am trying to obtain the Comapny Name field from Customer.

    Here is an example...

    Code:
    TargetCustomer = new Customer(CommonLogic.QueryStringUSInt("CustomerID"), true, true);
    
    Label1.Text = TargetCustomer.FirstName;
    Label2.Text = TargetCustomer.Company;
    Problem there is NO COMPANY parameter??? How can I get the company name?

    Cheers Daren

  2. #2
    duke is offline Junior Member
    Join Date
    Nov 2009
    Posts
    28

    Default

    where are you store the company name? the custom field can be obtained by querying directly into the table

  3. #3
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    Company names are stored on address records, not the customer. You'd need to look up the associated address and get the company name from there.