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

Visual Studio 2005: Questions

Hi everyone, I am having a tinker around with Visual Studio Professional
2005 and I am building a simple website:

Now, in 1.1 the event handlers were declared in the code behind page and you
could add in your own custom event handlers there

e.g.

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
MyObject.EventClicked+=new Object.Clicked(FunctionNameToBeCalled);
base.OnInit(e);
}
#endregion

I notice that this is missing from VS2005 and is stored in a seperate file,
can someone please tell me where this file is stored and *If* I make changes
to it will the compiler overwrite my changes when I rebuild th solution.

Also, if there is a nice VS2005 FAQ for VS2003 developers in regards to the
IDE etc, please post the URL

TIA
Mark
Jan 2 '06 #1
2 2055
For C#, notice the default AutoEventWireup value is true, meaning the
Page level event handlers are looked up at runtime based on the name
(Page_EventName).

If you want, you can still override OnInit and add event handlers in
the same way.

There is no hidden file with event wire up code.

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

On Mon, 2 Jan 2006 16:59:02 +1300, "Mark" <ma**@Z-Zvolution.nZt>
wrote:
Hi everyone, I am having a tinker around with Visual Studio Professional
2005 and I am building a simple website:

Now, in 1.1 the event handlers were declared in the code behind page and you
could add in your own custom event handlers there

e.g.

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
MyObject.EventClicked+=new Object.Clicked(FunctionNameToBeCalled);
base.OnInit(e);
}
#endregion

I notice that this is missing from VS2005 and is stored in a seperate file,
can someone please tell me where this file is stored and *If* I make changes
to it will the compiler overwrite my changes when I rebuild th solution.

Also, if there is a nice VS2005 FAQ for VS2003 developers in regards to the
IDE etc, please post the URL

TIA
Mark


Jan 2 '06 #2
Hi Scott, thanks for your help
Regards
Mark

"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:i3********************************@4ax.com...
For C#, notice the default AutoEventWireup value is true, meaning the
Page level event handlers are looked up at runtime based on the name
(Page_EventName).

If you want, you can still override OnInit and add event handlers in
the same way.

There is no hidden file with event wire up code.

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

On Mon, 2 Jan 2006 16:59:02 +1300, "Mark" <ma**@Z-Zvolution.nZt>
wrote:
Hi everyone, I am having a tinker around with Visual Studio Professional
2005 and I am building a simple website:

Now, in 1.1 the event handlers were declared in the code behind page and
you
could add in your own custom event handlers there

e.g.

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
MyObject.EventClicked+=new Object.Clicked(FunctionNameToBeCalled);
base.OnInit(e);
}
#endregion

I notice that this is missing from VS2005 and is stored in a seperate
file,
can someone please tell me where this file is stored and *If* I make
changes
to it will the compiler overwrite my changes when I rebuild th solution.

Also, if there is a nice VS2005 FAQ for VS2003 developers in regards to
the
IDE etc, please post the URL

TIA
Mark

Jan 2 '06 #3

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

Similar topics

30
by: Cowboy \(Gregory A. Beamer\) | last post by:
There seems to be a lot of confusion on the versions of Visual Studio 2005. My latest blog entry covers the different versions: Main URL:...
3
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in...
7
by: Victor S. | last post by:
1. What is System.Windows.Forms.VisualStyles.TextMetricsCharacterSet good for? 2. Are the Indic scripts supported? Are all supported scripts fully supported? (for printing and fine measuring)...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
2
by: Geek | last post by:
Guys, I have a question regarding publishing web site using visual studio 2005. As usual I am running in to issues using visual studio 2005. I have build a web site and when I publish to the...
13
by: Mark Rae | last post by:
Hi, On Friday I attended the Microsoft EVO conference in London where they talked about Vista, Office 2007 and Exchange 2007 and how they all work together beautifully, how they were all...
6
by: phnimx | last post by:
I'm attempting to migrate a predominately MFC application that I've just inherited from Visual Studio.NET 2003 to Visual Studio 2005. I've managed to clean up a myriad of compile and link errors...
5
by: cj | last post by:
I'm getting started writing WEB program in VB2005. I'm been doing windows apps to date. A friend told me to get Visual Web Developer Express Edition. But I have Visual Studio Pro 2005 and it...
1
by: samadams_2006 | last post by:
Hello, I have the following scenario and I was hoping that someone would help me determine the best way to approach this situation in Visual Studio 2005: 1) I have questions in a database...
8
by: Kuldeep | last post by:
Framework: Visual Studio 2005 Technology: ASP.NET 2.0 Language: C#.NET 2.0 Hi All, Could any one of you please let me know how to use NDoc in Visual Studio 2005. If there is a source where...
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
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...
1
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: 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: 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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.