What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 896 |  Welcome, Guest!   Register  Login
  Home > Community Home >

creating classes - auto instantiation

 Author: jaikar | Posted on: 6/5/2008 11:06:13 PM | Views: 75

Recommend an Articles | Recommended Articles | Search Resources | Community Home |




Hi there..

 how to create classes extending page object so that its automatically instantiated with everypage load. for example,

i write a class to convert the first letter of the string to upper case. and say the class name is str_functions and a method ucfirst. i dont want to instantiate the object everytime, but i just want to use ucfirst stright away without instantiating.

 i want to it work like this

str = ucfirst(str);

and not like this

str_function strF = new str_functions();
str = strF.ucfirst(str);

is this possible ?.. if yes .. how

Please advice...

 

Thanks !

~J
... Go to the complete details ...

Found interesting? Add this to:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 9:28:50 AM