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

Where is the Designer Code in 2.0 go As in 1.1

Hello,

Where can I find the following in 2.0

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
Thanks,

Sa


May 18 '06 #1
4 1324
On Wed, 17 May 2006 17:49:14 -0700, "MSDN" <sq**********@hotmail.com>
wrote:
Hello,

Where can I find the following in 2.0

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
Thanks,

Sa


in ASP.NET 2.0, these calls are moved away in partial classes to
separate design mode type files from our code.

Rick Strahl has a good discussion of this at
http://west-wind.com/weblog/posts/4031.aspx
Peter Kellner
http://peterkellner.net
May 18 '06 #2
But where are they and can I view them physically without having to resort
to tricks( like view in browser by forcing a runtime error then view
detailed source. ).

Thank you,

SA

"PeterKellner" <pk**********@73rdstreet.com> wrote in message
news:gb********************************@4ax.com...
On Wed, 17 May 2006 17:49:14 -0700, "MSDN" <sq**********@hotmail.com>
wrote:
Hello,

Where can I find the following in 2.0

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}
Thanks,

Sa


in ASP.NET 2.0, these calls are moved away in partial classes to
separate design mode type files from our code.

Rick Strahl has a good discussion of this at
http://west-wind.com/weblog/posts/4031.aspx
Peter Kellner
http://peterkellner.net

May 18 '06 #3

MSDN wrote:
But where are they and can I view them physically without having to resort
to tricks( like view in browser by forcing a runtime error then view
detailed source. ).

Thank you,

SA

The class you are looking for are generated at runtime or when you use
the asp.net pre-compiler utility. To view these classes you probably
would have to set debug="true" on that page and look in the Temporary
ASP.NET folders to find the source code. Just remember, you will not
see these classes in VS.NET

May 18 '06 #4
So to put anything in OnInit event handler I must override it.

Thank you,

SA
"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...

MSDN wrote:
But where are they and can I view them physically without having to
resort
to tricks( like view in browser by forcing a runtime error then view
detailed source. ).

Thank you,

SA

The class you are looking for are generated at runtime or when you use
the asp.net pre-compiler utility. To view these classes you probably
would have to set debug="true" on that page and look in the Temporary
ASP.NET folders to find the source code. Just remember, you will not
see these classes in VS.NET

May 18 '06 #5

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

Similar topics

22
by: ByteSize | last post by:
Dear All, Please, this is not meant to be offensive - but it is a challenge !!! I have posted on over a dozen so called 'vb.net' expert / blog sites - in the vain hope of finding a complete,...
21
by: Bret Pehrson | last post by:
Hey, which newsgroup is for complaining about how amazingly crappy the Visual Studio 2003 IDE is? Thanks -- Bret Pehrson mailto:bret@infowest.com NOSPAM - Include this key in all e-mail...
11
by: Geoff Cox | last post by:
Hello, I am trying to get a grip on where to place the initialization of two arrays in the code below which was created using Visual C++ 2005 Express Beta 2... private: static array<String^>^...
4
by: vbCrazy | last post by:
I had a number of labels and text boxes in a panel. They do not show up in the designer. They are listed in the properties pane in the designer They are listed in the Private components As...
7
by: Microsoft | last post by:
I'm not sure where to physically place my subroutines in vb.net I get namespace and not declared errors... Imports System Imports System.Management Public Class Form1
2
by: Wayne Wengert | last post by:
I have a VB App (VSNET 2003) in which, during form load, I create a dataset (ds1) and then populate a datagrid by binding to the dataset. That works fine. The form has a button which, when clicked,...
6
by: Altman | last post by:
I am playing around with making a dataset with the designer in vb.net 2005. I realize you can add parameters to select statement and then filter off of those parameters. What I would like to do...
21
by: Goofy | last post by:
I see that the code behind is now a partial class. So where is the code associated with the server controls declaration etc ? Is this generated on the fly now, or am I missing something ? --...
10
by: active | last post by:
I have a couple of projects in the VS2005 format using Partial Class. I can't find where the code for sub New is stored. Can you tell me where it is? thanks
3
by: =?Utf-8?B?cGlja2VkYW5hbWU=?= | last post by:
I am so frustrated, as is USUAL using Visual Studio. NONE, NOOOOONE of my aspx files have associated designer.vb files available (And yes, they all have the .vb code behind files). All of my aspx...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...

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.