G
Guest
I'm using master pages and have added some base functionality (public
functions) into this class.
I then create a new web form using the above as the master page. In the code
of my new web form, I need to access the custom PEMs of the Master page (I've
created).
I find only two ways of doing this (both of which i find unnecessary
replication of code)
- Make use of MasterType directive (which I'd have to do manually for each
and every page I create)
- Type caste the me.Master to the type required using CTYPE or DIRECTCAST or
the like.
Is there any other easier way of achieving the above?
I would've thought that there would be some setting in the web.config which
applies such a setting to all pages!
I'd hate to type either one of the above for each and every page i create
and use!
functions) into this class.
I then create a new web form using the above as the master page. In the code
of my new web form, I need to access the custom PEMs of the Master page (I've
created).
I find only two ways of doing this (both of which i find unnecessary
replication of code)
- Make use of MasterType directive (which I'd have to do manually for each
and every page I create)
- Type caste the me.Master to the type required using CTYPE or DIRECTCAST or
the like.
Is there any other easier way of achieving the above?
I would've thought that there would be some setting in the web.config which
applies such a setting to all pages!
I'd hate to type either one of the above for each and every page i create
and use!