
February 4th, 2003, 06:26 PM
|
|
Registered User
|
|
Join Date: Dec 2002
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Is there a way to add Properties at run time
Suppose i have created a generalized class which deals with data access and let us say there is a method which accepts a table Name and the method should <b>return a object and which in turn should populate Field Names as properties.</b> This part is actually a Design time when the class is used in the page. But as far as class is concerned its at run time since we create its instance and use it.<br><br><br>I have to explain this so that i want know whether what i am trying to do is right or wrong.<br><br><br>Now my question is <br><br>(1). How will the property be generated at run time as per the class is concerned.<br>(2). Even if the property is generated at run time (incase what i am asking is right) how will the property values be retrieved at run time of the page.<br><br><br>Let me further explain as i very well know the way i have asked is confusing .<br><br>1. <b>class DataAccess() </b> is a generalized Component created.<br><br>2. This DataAccess class is used in an Web Page or Windows Form. <i>When this class is used it will termed that it is in runtime. <b>This is were i want by DataAccess class to generate Properties when a method is called.</b> (runtime as per the class is concerned)</i><br><br>3. Now when the Web Page Or Windows Form is run both the class and the Page Or Form will be in run time. <b>Now this is the place where i want know the way to retreive the Property and its value.</b><br><br><br>All i want to know is there a possibility of this kind, if so just give me a hint and also incase if there is any Web link where i could look into it.<br><br>Thanks in advance.<p> </p><p><hr size="1" width="50%" align="left" />Sathish</p>
|