473,327 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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 #1
5 1356
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Gomaw Beoyr | last post by:
Two question about the "partial classes" (in the next wersion of ..NET). Question 1 ========== Will partial classes (in the next version of C#) have to be declared "partial" in ALL places. ...
7
by: Patrick | last post by:
Hi all, I was playing around with ASP.Net 2.0 and recognized that in case you use Code-Behind/Beside (how is it called in future?) the parser still creates TWO classes one partial class under...
7
by: Adrian Parker | last post by:
In 2003, we have a usercontrol that we reference as a type i.e. we can pass the class around to functions to reference it. In 2005, the class is now partial and doesn't seem to let you reference...
16
by: pawel.pabich | last post by:
Hajo, I would like to have 2 my own partial classes. For example: Default.aspx.cs Default2.aspx.cs and they both will relate to Default.aspx page.
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
9
by: TheSteph | last post by:
In VS 2005 Form files are in 3 parts : From1.cs, Form1.Designer.cs and Form1.resx. In VS 2003 there is only one ".cs files". How can I split my old VS2003 ".cs files" files in 2 files :...
2
by: Sebastian | last post by:
Hi Everyone, we're currently developing an web-app for insurance company. We've got a long form-flows and view-classes (MVC) of about 2000 lines of code. Is there any possibility to split...
3
by: =?Utf-8?B?TWljaGFlbCBkZSBWZXJh?= | last post by:
Just curios to know why a vb class is referred to as partial class. Especially after adding this item to your project. Thanks for any clarifications.
2
by: Peted | last post by:
Hi, im moving a project from vs2005 to vs 2008. is doing so i have come across a compiler error regarding partial classes that i dont understand if anyone can explain it to me please the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.