Click here to Skip to main content
15,901,283 members
Home / Discussions / C#
   

C#

 
AnswerRe: Cannot get datagridview to show records Pin
Drew McGhie23-Feb-07 5:48
Drew McGhie23-Feb-07 5:48 
GeneralRe: Cannot get datagridview to show records Pin
brainfuelmedia_23-Feb-07 5:56
brainfuelmedia_23-Feb-07 5:56 
GeneralRe: Cannot get datagridview to show records Pin
Drew McGhie23-Feb-07 6:00
Drew McGhie23-Feb-07 6:00 
QuestionRemoting Pin
Saaaaz23-Feb-07 4:48
Saaaaz23-Feb-07 4:48 
AnswerRe: Remoting Pin
Obaid ur Rehman23-Feb-07 6:02
Obaid ur Rehman23-Feb-07 6:02 
GeneralRe: Remoting Pin
Saaaaz25-Feb-07 8:13
Saaaaz25-Feb-07 8:13 
GeneralRe: Remoting Pin
Saaaaz27-Feb-07 3:12
Saaaaz27-Feb-07 3:12 
QuestionInheritance Pin
#realJSOP23-Feb-07 4:25
professional#realJSOP23-Feb-07 4:25 
I have the following classes defined:

public class ControllerPage : System.Web.UI.Page
{
    protected long m_nStatusCode;

    long PropStatusCode(value)
    {
        get { return m_nStatusCode;  }
        set { m_nStatusCode = value; }
    }
}


public abstract class DerivedPage : ControllerPage
{
    // does need to do anything with/to the data member defined above
}


public partial class MyPage : DerivedPage
{
    // sets/gets the property value defined in the base ControllerPage class
    public void MyFunction()
    {
        this.StatusCode = 1;
        if (this.StatusCode == 1)
        {
            // do something
        }
    }
}


I can set the property from the MyPage class, and I can see it being set i the debugger, but when I try to retrieve the value, I don't get anything back. Before I start declaring C# to be one of the most insanely unusable languages I've ever had the displeasure to use, can someone please tell me why this is happening?


I've looked around on the web, but I haven't found a single place that talks about inheritance more than one-class deep.







"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


AnswerRe: Inheritance Pin
led mike23-Feb-07 4:38
led mike23-Feb-07 4:38 
GeneralRe: Inheritance Pin
#realJSOP23-Feb-07 4:42
professional#realJSOP23-Feb-07 4:42 
GeneralRe: Inheritance Pin
led mike23-Feb-07 4:57
led mike23-Feb-07 4:57 
GeneralRe: Inheritance Pin
BoneSoft23-Feb-07 5:59
BoneSoft23-Feb-07 5:59 
GeneralRe: Inheritance Pin
#realJSOP23-Feb-07 6:12
professional#realJSOP23-Feb-07 6:12 
GeneralRe: Inheritance Pin
led mike23-Feb-07 6:36
led mike23-Feb-07 6:36 
AnswerRe: Inheritance Pin
Pete O'Hanlon23-Feb-07 4:42
mvePete O'Hanlon23-Feb-07 4:42 
AnswerRe: Inheritance Pin
Colin Angus Mackay23-Feb-07 4:45
Colin Angus Mackay23-Feb-07 4:45 
GeneralRe: Inheritance Pin
#realJSOP23-Feb-07 6:10
professional#realJSOP23-Feb-07 6:10 
Questionreplace Pin
arkiboys23-Feb-07 3:51
arkiboys23-Feb-07 3:51 
AnswerRe: replace Pin
Stefan Troschuetz23-Feb-07 3:55
Stefan Troschuetz23-Feb-07 3:55 
GeneralRe: replace Pin
arkiboys23-Feb-07 3:58
arkiboys23-Feb-07 3:58 
AnswerRe: replace Pin
Guffa23-Feb-07 4:15
Guffa23-Feb-07 4:15 
GeneralRe: replace Pin
arkiboys23-Feb-07 4:49
arkiboys23-Feb-07 4:49 
AnswerRe: replace Pin
Guffa23-Feb-07 5:47
Guffa23-Feb-07 5:47 
AnswerRe: replace Pin
kubben23-Feb-07 3:58
kubben23-Feb-07 3:58 
QuestionImplementing some broadcast udp protocol Pin
ohad_2923-Feb-07 3:28
ohad_2923-Feb-07 3:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.