CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 9/26/2006 10:45:50 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 16 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
WhatThe12
Asp.Net User
Convert to Partial Classes9/26/2006 10:45:50 PM

0/0

Hi, I tried the 'Convert to web application' feature and it created partial classes. Why does it need the '.aspx.designer.cs' files? I though the point of partial classes was to be able to define controls in the aspx and then program them in the code file. So why can't it do this instead of creating all these new code files? These aren't proper partial classes!
Web dev - spending forever achieving nothing.
vcsjones
Asp.Net User
Re: Convert to Partial Classes9/26/2006 11:45:36 PM

0/0

A partial class is allowing to have a class defined to two or more seperate code files.

It is possible to split the definition of a class or a struct, or an interface over two or more source files. Each source file contains a section of the class definition, and all parts are combined when the application is compiled. There are several situations when splitting a class definition is desirable:
  • When working on large projects, spreading a class over separate files allows multiple programmers to work on it simultaneously.

  • When working with automatically generated source, code can be added to the class without having to recreate the source file. Visual Studio uses this approach when creating Windows Forms, Web Service wrapper code, and so on. You can create code that uses these classes without having to edit the file created by Visual Studio.


Cheers,
       Kevin Jones


timmcb
Asp.Net User
Re: Convert to Partial Classes9/27/2006 7:05:32 PM

0/0

The difference is compilation on the server versus compilation on the client.

Web Site CodeFile= compilation model
With a web site the code file is compiled on the server.  ASP.Net generates the second half of the partial class on the fly and compiles it with the code file on the server. 

Web Application Project CodeBehind= compilation model 
With a web application project the code behind file is compiled on the client.  For the compilation to succeed both halves of the partial class must be included.  This is why you see the .designer file in the web application project.


Tim McBride

This posting is provided "AS IS" with no warranties, and confers no rights.
WhatThe12
Asp.Net User
Re: Convert to Partial Classes9/29/2006 5:54:57 PM

0/0

I think the logical conclusion of partial classes would be to be able to have different partials spread across assemblies.
Web dev - spending forever achieving nothing.
timmcb
Asp.Net User
Re: Convert to Partial Classes9/29/2006 6:30:20 PM

0/0

That is an interesting idea.  It would not work for code behind files since the dependent half of the partial class in the code behind file must be compiled on the client first.  Inheritence is the appropriate choice accross assemblies currently.
Tim McBride

This posting is provided "AS IS" with no warranties, and confers no rights.
WhatThe12
Asp.Net User
Re: Convert to Partial Classes9/30/2006 6:41:31 PM

0/0

I think the code behind could be compiled with reference to the aspx (as with a web site project) and then just the compiled code behind bit is placed inside a dll which gets uploaded. Then the aspx when requested is compiled again on the fly against the other partial in the dll (as with a web app project).

 This would be a cross between a web app project and a web site project but it would require being able to stick half a partial in a dll without the other half. It would make deployment a single dll with no code files plus some aspx's as with asp.net 1.1 plus designers could still modify the aspx.


Web dev - spending forever achieving nothing.
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
C# Cookbook Authors: Jay Hilyard, Stephen Teilhet, Pages: 1154, Published: 2006
Essential ASP.Net 2.0 Authors: Fritz Onion, Keith Brown, Pages: 345, Published: 2006
C# 3.0 Cookbook Authors: Jay Hilyard, Stephen Teilhet, Pages: 886, Published: 2007
Beginning VB 2008: From Novice to Professional Authors: Christian Gross, Pages: 450, Published: 2008
Beginning C# 2008: From Novice to Professional Authors: Christian Gross, Pages: 550, Published: 2008
Pro VB 2005 and the .Net 2.0 Platform Authors: Andrew Troelsen, Pages: 1034, Published: 2006
Beginning ASP.NET 2.0 in VB 2005: From Novice to Professional Authors: Matthew MacDonald, Pages: 1063, Published: 2006
C# 3.0 in a Nutshell: A Desktop Quick Reference Authors: Joseph Albahari, Peter Drayton, Pages: 838, Published: 2007
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008

Web:
How to convert Windows Forms 1.1 to 2.0 to use partial classes ... How to convert Windows Forms 1.1 to 2.0 to use partial classes?. Get answers to your questions in our .NET C# forum.
Convert to Partial Classes - ASP.NET Forums Hi, I tried the 'Convert to web application' feature and it created partial classes. Why does it need the '.aspx.designer.cs' files? ...
.NET Questions - Convert Designer Generated Code to Partial Class? Convert Designer Generated Code to Partial Class? Is there some utility out there that will convert .NET 1.1-style windows forms code files ...
Migrating a VS 2003 Web Project to VS 2005 Step 8: Convert to Partial Classes. When you migrate your project using the above steps, none of your code-behind page code or classes are modified. ...
"Convert to Web Application" didn't convert pages to partial ... "Convert to Web Application" didn't convert pages to partial classes in 1.1 -> 3.5 migration DOTNET.
MSDN Visual Studio Extensibility Disabling Partial Classes in ... thats what the issue is my dear.. when I convert a VS2003 solution to VS2005 , it converts all windows forms to partial classes. ...
Convert to Web Application Problem - Partial Class Conversion ... The result for the first team member did correctly convert each aspx form into the partial class components, the xxx.aspx.vb and ...
Just geeks: Reflection makes partial classes visible again Convert only this class to a non-partial class. I have not tried this, and don't know if this will work. Option 3. Use reflection to get around the issue. ...
"Convert to Web Application" didn't convert pages to partial ... "Convert to Web Application" didn't convert pages to partial classes in 1.1 -> 3.5 migration. Get answers to your questions in our .NET ASP forum.
Partial Classes and Stub routines partial class COMPUTE is stub prompt_user:STR; main is res ::= prompt_user; -- Convert it to an integer and do something with it i:INT := res.cursor.get_int ...

Videos:
Removal of religious conservatism Today, Shri Guru Datta is giving the right knowledge to remove the religious conservatism. I am giving the right knowledge taking the Hindu terrorist...
Lec 19 | MIT 3.091 Introduction to Solid State Chemistry Defects in Crystals: Point Defects, Line Defects, Interfacial Defects, Voids View the complete course at: http://ocw.mit.edu/3-091F04 License: Crea...
Lec 24 | MIT 3.091 Introduction to Solid State Chemistry Fick's Second Law (FSL) and Transient-state Diffusion; Error Function Solutions to FSL View the complete course at: http://ocw.mit.edu/3-091F04 Lic...
Connexions - Building Communities and Sharing Knowledge Google TechTalks April 11, 2006 Richard G. Baraniuk Richard G. Baraniuk is the Victor E. Cameron Professor of Electrical and Computer Engineering a...
Lec 8 | MIT 3.091 Introduction to Solid State Chemistry Born-Haber Cycle Octet Stability by Electron Sharing: Covalent Bonding Lewis Structures Hybridization View the complete course at: http://ocw.mit...
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










windows authentication

authenticate

how to cache an image from a master page

file upload maximum size?

fee dnn 2 skins

single codebehind for multiple pages

how to import ( @import ) .css using app_themes

problem uninstalling vwd express beta 1

password generation, db store and email - anyone built it yet?

asp.net runtime error: there is no build provider registered for the extension ''

fixed container size?

trouble shooting windows authentication

little msde help please!!

problem with new download, dotnetnuke_3.1.1

export toolbox?

adding ad user to ad group

timeout between the appserver and the web server....what are the ways to control this issue ?.

change made in the .css file doesn't take effect on the page

3.1.1 upgrade from 3.0.13 failed...

controlling menu alignment

help

firefox and impersonation

trouble building server controls?

dnn upgrade from 2.12 to 3.13 failed!!! please advice!

print page

should be simple custom control

dnn4 + sql 2005 backup strategy

master page error

php to asp.net migration

custom properties

 
All Times Are GMT