CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 6/23/2005 3:47:40 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 8 Views: 28 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
9 Items, 1 Pages 1 |< << Go >> >|
ad_flying
Asp.Net User
Are there partial class not visible6/23/2005 3:47:40 AM

0/0

In vs2003, there are codes generated by IDE in the InitializeComponent method
If there are DataAdapter in the form, it will genetrated the codes like:

   this.cmdStNum.CommandText = @"SELECT TOP 100 PERCENT County.Area AS ...
   this.cmdStNum.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Weeks", System.Data.SqlDbType.SmallInt, 2, "Week"));
   this.cmdStNum.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Years", System.Data.SqlDbType.SmallInt, 2, "Years"));
   this.cmdStNum.Parameters.Add(new System.Data.SqlClient.SqlParameter("@Area", System.Data.SqlDbType.VarChar, 1, "AreaID"));


I used copy these codes to the Data access layer.

But I can't find these code in vs2005, it is said that these code is in anothe partial class file which is not visible.

Is it true? Where to find these code?
ByReckon
Asp.Net User
Re: Are there partial class not visible6/23/2005 11:24:17 AM

0/0

Hello ad_flying,

maybe don't map directly to your question, but can show you some light about partial classes.

http://forums.asp.net/833165/ShowPost.aspx

Regards.


VB .Net Coder - Apologize my C# nescience
Best Regards.
ad_flying
Asp.Net User
Re: Are there partial class not visible6/23/2005 12:20:32 PM

0/0

Thanks for the session you talk bfore.

There a sentence in the article, But I can't find  another partial class
Summary: mypage.aspx inherits from a partial class mypage.aspx.vb/cs + another partial class containing control's declarations which in turns inherits from the MasterPage class, a Page class or a UserControl class.

Where can I find it?
ByReckon
Asp.Net User
Re: Are there partial class not visible6/23/2005 12:27:56 PM

0/0

Hello again ad_flying

If I'm not mistaken that partial class it is added by the ASP.NET host in runtime. In design-time the VWD/VS 2005 makes "some magic" to keep both files wired-up and sync.

I can't give you an answer about neither where those classes are located/where do they exist nor they're accessible in any way.

Greetings.

VB .Net Coder - Apologize my C# nescience
Best Regards.
ad_flying
Asp.Net User
Re: Are there partial class not visible6/23/2005 12:42:56 PM

0/0

Thank!

It is magic!

Could the Asp.Net Team give use a answer?
Rich21
Asp.Net User
Re: Are there partial class not visible6/23/2005 1:21:47 PM

0/0

No Magic here, they are located in the Temporary ASP.NET Files folder here:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\<YouAppName>\...

There'll be some odd child folder names in the heirarchy, but if you drill down enough you'll see some cs/vb files.  Unfortunately the names of the files are autogenerated by the framework, so you'll have to look at them to determine which page they're related too.




Rich Czyzewski

Software Architect
Jacksonville, Florida

Check out my .NET 2.0 Website WebJots (Starter Kit Available)
My Blog - Beta 2 Stuff, ASP.NET, etc.

ByReckon
Asp.Net User
Re: Are there partial class not visible6/23/2005 8:09:46 PM

0/0

Hello Rich21,

Well, not "a kind of magic", but something happen. There's something misunderstood here (probably me). Each web form it is compiled in a single assembly, isn't? If web forms are compiled usually on first request and the ASP.NET runtime gives them random names, how do we access to that auto-generated partial class added by the runtime? Do you mean we can access directly to that autogenerated partial class file? How? And if we can, what about when dealing with tens of web-forms and random names are assigned?

Regards.

VB .Net Coder - Apologize my C# nescience
Best Regards.
Rich21
Asp.Net User
Re: Are there partial class not visible6/23/2005 8:30:51 PM

0/0

The file names are randomly generated, not the class names.  The class name remains the same.  Partial Class Compilations are determined and assembled at compile time, into a class, which may live in assembly with many other classes.  During run time the class generated looks like any other.  You access the members and properties of that class just as you would access the members of a normal object; instantiate the object and work with it (all methods, properties, etc from all partial classes will be there).  Also keep in mind, that you should never need to do anything with the cs/vb partial class files generated by asp.net in the Temporary ASP.NET folder (They're just there for reference, the framework takes care of everything for you). Hope this clears things up.


Rich Czyzewski

Software Architect
Jacksonville, Florida

Check out my .NET 2.0 Website WebJots (Starter Kit Available)
My Blog - Beta 2 Stuff, ASP.NET, etc.

ByReckon
Asp.Net User
Re: Are there partial class not visible6/24/2005 8:41:39 AM

0/0

Hello again Rich and thanks for your excellent post.

probably due to my improvable English, I did not use the correct term. I was talking about the name given by the runtime to the generated assembly.

What I mean it is the fact that the final assembly generated by the runtime, it is the result of joining in a single assembly the .aspx file + the code-behind class (if we are using the code-behind model) + the auto-generated partial class created by the framework.

The initial question made in this thread was if there's any way of accesing to that code auto-generated by Visual Studio/ASP.NET, which in previous versions (VS 2002/03) was completely accessible because the code it is visible in the code-behind file. Now, with the new partial classes, that code dissapears - they really exist as you know in the background - , and Visual Studio in designtime and ASP.NET (by adding that autogenerated partial class to the final assembly) in runtime, are in charge of keeping in sync both files (.aspx + code-behind).

So, if I'm not mistaken about how ASP.NET executes this task, I may assert that some kind of magic it's behind the whole process. 

Greetings.

VB .Net Coder - Apologize my C# nescience
Best Regards.
9 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
ECOOP 2004 - Object-oriented Programming: 18th European Conference, Oslo, Norway, June 14-18, 2004 : Proceedings Authors: Martin Odersky, Pages: 609, Published: 2004
The Physics of Quasicrystals: Lectures and Reprints Authors: Paul J. Steinhardt, Stellan Ostlund, Pages: 767, Published: 1987
Algorithmic and Quantitative Real Algebraic Geometry: DIMACS Workshop, Algorithmic and Quantitative Aspects of Real Algebraic Geometry in Mathematics and Computer Science, March 12-16, 2001, DIMACS Center Authors: Saugata Basu, Laureano Gonzalez-Vega, Pages: 219, Published: 2003
Fundamental Approaches to Software Engineering: 8th International Conference, FASE 2005, Held as Part of the Joint Conferences on Theory and Practice of Software, ETAPS 2005, Edinburgh, UK, April 4-8, 2005 : Proceedings Authors: Maura Cerioli, Pages: 371, Published: 2005
Problems in Class Analysis: Production, Knowledge, and the Function of Capital Authors: Guglielmo Carchedi, Pages: 269, Published: 1983
Pro .NET 2.0 Code and Design Standards in C# Authors: Mark Horner, Pages: 329, Published: 2005
Object-oriented and Mixed Programming Paradigms: New Directions in Computer Graphics Authors: Peter Wisskirchen, Pages: 196, Published: 1996

Web:
Just geeks: Reflection makes partial classes visible again Again, the reason is the class is a partial class and does not exist yet. ... Also, try not to do something like this in a loop as there is a slight ...
Tower Of Power » Blog Archive » Partial Classes in PHP May 1, 2008 ... The idea behind this partial class hack is to instance a copy of the partial .... not being visible to it’s children (the extended class). ...
marc hoffman - Partial Methods Simple: partial methods allow one part of a partial class to define an empty .... I'm not sure I like the naming; partial indicates (to me) that there are ...
Thom Robbins .NET Weblog : Looking at Partial Classes Within this application we can implement a partial class using the following ... Figure 6: Within Visual Studio 2005 form generated code is not visible ...
Invisible Pink Unicorn - Wikipedia, the free encyclopedia The Revelation of St. Bryce the Long-Winded (Partial), Chapter One, ... There is an Invisible Pink Unicorn logo that was created by frequenters of ...
CSLA .NET - Input requested: #if vs partial class In this case there'd literally be three different files. The linked one with the shared code, a partial class in the Silverlight Class ...
Simple Partial Postback from RadioList not working. - ASP.NET Forums public partial class _Default : System.Web.UI. ... Visible = true; instlabel. Visible = true; } else { instname.Visible = false; instlabel. ...
MSResultSetGenerator - Create Partial Class of Typed Result Set to ... There are currently too many topics in this group that display first. ... partial class that take parameters indicating what data I want. ...
Sandbox: Problem with the partial class ... Thread: Problem with the partial class properties... and updating ... but when the column is visible I can not, I guess because the object is currently used ...
Invisible Plugin Page - Please Help! | Gallery Oct 25, 2008 ... Acceleration = partial/21600, partial/21600 ... SiteAdmin Loading plugin core Class not defined, trying to include it. ...

Videos:
Submarine Submarine Overview The Los Angeles class attack submarine USS Greeneville in dry dock, showing typical cigar-shaped hull.Modern submarines are usua...
One Day in the Life of Richard Gonzalez I will never be the same person that I was when I left the States, writes Richard Gonzalez in a haunting remembrance of his experience as a U.S. Army...
DVLH Fire http://www.myspace.com/DVLH2 Fire is the heat and light energy released during a chemical reaction, in particular a combustion reaction. Depending on...
Structuring Personal Information When Everything Can Be Saved and Searched... Google TechTalks May 17, 2006 William Jones William Jones is an Research Associate Professor in The Information School at the University of Washingt...
PBS Free to Choose 1990 Vol. 2 of 5 - The Tyranny of Control Free to Choose 1990 Volume 2 - The Tyranny of Control Topic: The Case for Free Trade ABSTRACT "When anyone complains about unfair competition, c...
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...
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...
Long Beach City Council Meeting Long Beach City Council Meeting
www.moldytoaster.com may know with what pains we prepare ourselves for them. Besides, when BULWER thinks it right that the world should know that the idea of "La Vaili\'c...
www.moldytoaster.com dolph_ is seated upon his ducal throne, fortunate in the possession of a paragon-wife, and a steward of the household not to be equalled--no other th...




Search This Site:










visual studio.net 2005 ide problems

errors opening solution in vs2005 that are a complete mystery

style sheet wizard

cse.exe instead of al.exe for multi-file assemblies and linked resources?

difference in vs .net 2003 and vs 2005

visual studio 2005 can not display recent project list

web controls missing from vs.net 2005 toolbox

vs team build question: how to get build status

view code option mising from popup menu

every time i make a table in design view, i get an error in ‘source' view?

the application domain in which the thread was running has been unloaded.

web deployment

system.web.compilation.compilationlock exception when compiling web service

intellisense for ashx

what are the hot-keys in vs2005

any manual uninstall for vs 2005

where's vb web projects?

using the class diagram template

conditional compilation for a web site in vs 2005?

deployement of a schemaimporterextension class

new website / project

setting up namespaces for multiple projects

setting up vs 2005 for web

customer membership provider requires admin rights under vs/cassini (yuck!!!)

visual web developer web server

relative path problems on development server because of ports

sick and tired of trailing spaces in visual studio .net

newbe question sql server

web site project not available in vs2005

how to create a popup window having close button on right upper corner in asp.net

  Privacy | Contact Us
All Times Are GMT