By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,249 Members | 1,853 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,249 IT Pros & Developers. It's quick & easy.

Can I avoid Partial classes in VS.Net 2005 ?

P: n/a
I am working on a migration project for a huge asp.net application now
running in framwework 1.1 to dotnet 2.0

As a first step, I opened the .sln files of the project in VS.Net
2005. The Conversion wizard created partial classes off the existing
classes.

Is partial classes mandatory in VS.Net 2005 or can I still work
without having to live with partial classes ?

thanks
Anand
Nov 22 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
What do you expect to gain by not using partial classes ?

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Sagar" <an********@gmail.comwrote in message
news:9c**********************************@d61g2000 hsa.googlegroups.com...
>I am working on a migration project for a huge asp.net application now
running in framwework 1.1 to dotnet 2.0

As a first step, I opened the .sln files of the project in VS.Net
2005. The Conversion wizard created partial classes off the existing
classes.

Is partial classes mandatory in VS.Net 2005 or can I still work
without having to live with partial classes ?

thanks
Anand

Nov 22 '07 #2

P: n/a
In my migration tests, I've found that the .aspx/.aspx.vb files migrated
without any modifications to using partial classes (and from my reading, it
should not convert existing pages to use them). After migrating, you *can*
convert them to use partial classes if you were to right click on the
project or file and choose "Convert To Web Application" (see:
http://msdn2.microsoft.com/en-us/lib...x#wapp_topic18
and look at "Step 6: Covert Code-Behind Classes to Partial Classes").

So no, partial classes are NOT required.

"Sagar" <an********@gmail.comwrote in message
news:9c**********************************@d61g2000 hsa.googlegroups.com...
>I am working on a migration project for a huge asp.net application now
running in framwework 1.1 to dotnet 2.0

As a first step, I opened the .sln files of the project in VS.Net
2005. The Conversion wizard created partial classes off the existing
classes.

Is partial classes mandatory in VS.Net 2005 or can I still work
without having to live with partial classes ?

thanks
Anand
Nov 22 '07 #3

P: n/a
Partial classes are not required. But you should move in that direction
as fast as you can.

-----Original Message-----
From: Sagar [mailto:an********@gmail.com]
Posted At: Thursday, November 22, 2007 8:22 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Can I avoid Partial classes in VS.Net 2005 ?
Subject: Can I avoid Partial classes in VS.Net 2005 ?

I am working on a migration project for a huge asp.net application now
running in framwework 1.1 to dotnet 2.0

As a first step, I opened the .sln files of the project in VS.Net
2005. The Conversion wizard created partial classes off the existing
classes.

Is partial classes mandatory in VS.Net 2005 or can I still work
without having to live with partial classes ?

thanks
Anand

Nov 22 '07 #4

P: n/a
Thanks, I am basically looking towards minimal changes to code yet get
the full benefit of .net 2.0.

- Anand
an********@gmail.com
Nov 22 '07 #5

P: n/a
Once you come to an understanding of why partial classes are useful, it won't
be such a big deal I believe.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"Sagar" wrote:
Thanks, I am basically looking towards minimal changes to code yet get
the full benefit of .net 2.0.

- Anand
an********@gmail.com
Nov 22 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.