Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / May 2008

Tip: Looking for answers? Try searching our database.

partial page classes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy B - 27 May 2008 04:26 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?
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.