473,320 Members | 1,535 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,320 software developers and data experts.

Partial class and code behind in asp.net2

Ok - this is so stupid but i just don't get it.

When you create an aspx-file in asp.net2 with code behind, place a button on
the form an dbl click the button you end up in a partial class - that I
understand. But where can I find "the other half" of the class where
controls are decladed and events are wired. In 1.x there is a "Web Form
Designer generated code" region - where is that code in 2.0?

Like I said - stupid!

Thanks
Nov 19 '05 #1
2 1012
Hi Anders,
This code is generated at just in time compilation stage, or when you using
precompilation utility. You can not alter this code. You can see it, using
reflector for example, on dlls created in Temporary ASP.NET Files
subdirectory.
Regards,
Leon
--
Leon Langleyben
MCSD
http://dotnetjunkies.com/WebLog/leon/
"Anders S. Willumsen" wrote:
Ok - this is so stupid but i just don't get it.

When you create an aspx-file in asp.net2 with code behind, place a button on
the form an dbl click the button you end up in a partial class - that I
understand. But where can I find "the other half" of the class where
controls are decladed and events are wired. In 1.x there is a "Web Form
Designer generated code" region - where is that code in 2.0?

Like I said - stupid!

Thanks

Nov 19 '05 #2
Hi Anders:

I have some details in the following article:
http://odetocode.com/Articles/406.aspx

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 31 Jul 2005 21:08:39 +0200, "Anders S. Willumsen"
<an**********@yahoo.com> wrote:
Ok - this is so stupid but i just don't get it.

When you create an aspx-file in asp.net2 with code behind, place a button on
the form an dbl click the button you end up in a partial class - that I
understand. But where can I find "the other half" of the class where
controls are decladed and events are wired. In 1.x there is a "Web Form
Designer generated code" region - where is that code in 2.0?

Like I said - stupid!

Thanks


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: nospam | last post by:
I just read on Slash Dot about partial types. Now, is it possible to have a code behind split over two pages but still referencing the same .aspx file??? If so, that would be really nice as...
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...
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...
2
by: Billy | last post by:
In .Net 2, when I have created a strongly typed dataset of a SQL table and then 'viewed' the code from the RHM menu. I am taken to the new partial class; as expected, but why do I have a partial...
0
by: dinesh | last post by:
I am using ASP.Net 2.0 ,i've inherited a page in another page. During compilaton I get the error saying " the "base class" could not be found" But when I rebuild the application the error goes....
9
by: Fat Elvis | last post by:
I'd like to extend some of my Asp.net pages by using Partial Classes. Example ASP.Net Page: public partial class Admin_Customer : System.Web.UI.Page { protected void Page_Load(object sender,...
2
by: Hiten | last post by:
Is it possible to have more code behind file but that file will have same class in way of partial class, Default Structure I -------------- Homepage.aspx + Homepage.aspx.cs (this .cs file...
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...
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: 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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.