473,854 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(EventArg s e)
{
InitializeCompo nent();
MyObject.EventC licked+=new Object.Clicked( FunctionNameToB eCalled);
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 2077
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(EventArg s e)
{
InitializeComp onent();
MyObject.Event Clicked+=new Object.Clicked( FunctionNameToB eCalled);
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.o detocode.com> wrote in message
news:i3******** *************** *********@4ax.c om...
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(EventArg s e)
{
InitializeCom ponent();
MyObject.Even tClicked+=new Object.Clicked( FunctionNameToB eCalled);
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
2248
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: http://spaces.msn.com/members/gregorybeamer/Blog/cns!1ptsyfBgfiUmsaQCul95SOyg!141.entry If the above URL wraps and you want a shorter URL for the entry: http://tinyurl.com/9yxbs --
3
2322
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 Asp.Net 1.1 / VB.NET. These web sites use Access Databases and NOT Microsoft SQL 2000. In the future I will need to make a few changes now and then to this web sites.
7
1834
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) Is the printing done by GDI++ without using Unicribe? 3. Is the Text.Encoder/Decoder provided by the OS or by the Framework?
18
9159
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 page "How to: Connect to Data in an Access Database"
2
2406
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 local host it is running perfectly now after spending couple of hours. Now the questions is whenever I transfer all the published website to production server it is giving me error <!-- Web.Config Configuration File -->
13
3045
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 "people-ready" etc... I asked a couple of questions about Visual Studio.NET on Vista, especially on 64-bit Vista, and they became *very* nervous... To cut a long story short, Microsoft will not support ANY version of Visual
6
16197
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 but I'm stuck on one final problem. Please note that this application compiled/linked and ran just fine out of Visual Studio.NET 2003. Details: It's originally incarnated as an MFC app, i.e. CWinApp, CMultiDocTemplate,
5
2223
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 says I have Visual Web Developer in it. I'm just not sure what that is and how to start it. Any advise?
1
1283
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 which I would like to display on a form. 2) Along with the questions, I would like to display a series of radio controls for the user to supply their input.
8
1862
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 I can find step by step information, I would be greatly obliged.
0
9901
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9750
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10672
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9510
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7077
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5738
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5937
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4150
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3182
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.