I want to use partial classes with my pages. Do I need to put all of the
page using statements in both class files? or just one of them?
Munna - 27 May 2008 06:35 GMT
> I want to use partial classes with my pages. Do I need to put all of the
> page using statements in both class files? or just one of them?
Hi,
Asp.net 2.0~3.0 by default generate code behind file as a partial
class.
what is the case is not clear.
can you be a little more descriptive.
Best of luck
Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Joy - 27 May 2008 09:34 GMT
Hi Andy,
You need the Using statements in the beginning of a page/class so that the
class is
able to make API calls to the APIs present in those references and hence
these Using statements are class sepcific (file specific).
You donot need to include all the Using statements in all the partial
classes,just include the ones that are needed to compile that class.
regards,
Joy
> I want to use partial classes with my pages. Do I need to put all of the
> page using statements in both class files? or just one of them?