help to access different cs(class) files using the concept of inheritence
-
hi friends, i am getting trouble to access more then two class files with the concept of inheritence(drived class)......means.... i having one base class... i have developed one more class want to include drive for the previous class...... and also... kindly give me idea to include..values objects... to acces the diffent page controls... bye, forever friend, sarala.s
-
hi friends, i am getting trouble to access more then two class files with the concept of inheritence(drived class)......means.... i having one base class... i have developed one more class want to include drive for the previous class...... and also... kindly give me idea to include..values objects... to acces the diffent page controls... bye, forever friend, sarala.s
-
are both classes in the same namespace? You can group classes into namespaces and include in other classes.
-
yes.. exactly i tried as u said...but getting probs.... can u suggest to include .. namespace and include the class?? or any gud website to refer???
I'm not sure whether you are looking for this, but i'm giving you an example first.cs -------- using System; using System.Data; using System.Configuration; using System.Linq; . . . namespace Test { public class Images { public memberFunction(); { //do something } } } ---------- second.cs --------- using System; using System.Data; using System.Configuration; using System.Linq; using Test; // including the namespace . public class DB { private method1() { Images images=new Images(); images.memberFunction(); } } Does it make sense?
-
hi friends, i am getting trouble to access more then two class files with the concept of inheritence(drived class)......means.... i having one base class... i have developed one more class want to include drive for the previous class...... and also... kindly give me idea to include..values objects... to acces the diffent page controls... bye, forever friend, sarala.s
Are you trying to inherit one asp.net page class from another? This isn't really a great way to go about this, if it is the case - pages should stand alone from each other.