adrianmcg's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
10 (0.02 per day)
Joined:
06-December 12
Profile Views:
841
Last Active:
User is offline Dec 13 2012 10:00 AM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   adrianmcg has not set their status

Posts I've Made

  1. In Topic: Adding 2 values that together as decimals in c# asp.net

    Posted 13 Dec 2012

    text = text.Replace("", "");
    

    This works for removing .

    I am not sure how to change this to add to the pack value for total.
  2. In Topic: Adding 2 values that together as decimals in c# asp.net

    Posted 13 Dec 2012

                int totalint = int.Parse(total.Text);
    
    


    produces a formatexception.

    input string was not in correct format.

    Total is in currency format {0:c}
  3. In Topic: Adding 2 values that together as decimals in c# asp.net

    Posted 13 Dec 2012

    "total" is a label. I am not sure how to convert this to int to sum with "pack". I keep getting format errors.

    I have tried int.parse() and toString(), but have had no luck.
  4. In Topic: Total Gridview footer ASP.Net C#

    Posted 13 Dec 2012

    View PostNakor, on 12 December 2012 - 06:22 PM, said:

    Where are you getting the null reference at?


    I have sorted it. I was referencing the wrong part in the second if statement.
  5. In Topic: Total Gridview footer ASP.Net C#

    Posted 12 Dec 2012

    Quote

    As for your problem, when you debug it is sTotal being assigned a value?


    Yes I want to assign sTotal the value of the total of the column "Total" which will be displayed on label "lblTotal".

    I found that the gridview did not have rowdatabound, so I assigned it to my code.

    And have debugged it and am getting a nullReferenceError which was handled by user.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

adrianmcg hasn't added any friends yet.

Comments

adrianmcg has no profile comments yet. Why not say hello?