Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

InitializeComponent

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff User - 27 Mar 2008 18:14 GMT
hi all

What happened to OnInit() & InitializeComponent() system generated C#
code in VS2005?

I cannot find it. Where is the event hookup information located?

Thanks
Ignacio Machin ( .NET/ C# MVP ) - 27 Mar 2008 18:53 GMT
> hi all
>
[quoted text clipped - 4 lines]
>
> Thanks

Hi,

They are in the partial part of the class generated by the designer.
Jeff User - 27 Mar 2008 19:22 GMT
>> hi all
>>
[quoted text clipped - 8 lines]
>
>They are in the partial part of the class generated by the designer.

I have two partial classes (that I am aware of) the C# code behind and
a designer.cs file. I place a button on the form. I dbl click it and
vs adds the C# code to execute when the event is fired.

The designer only contains a declaration for the control, like this:
protected global::System.Web.UI.WebControls.Button Button1;

The aspx file contains the asp button tag with an OnClick event.

But nowhere do I see the link between the two.

What am I missing here?
Thanks
Jeff
Family Tree Mike - 28 Mar 2008 04:10 GMT
> >> hi all
> >>
[quoted text clipped - 23 lines]
> Thanks
> Jeff

Change the name of the OnClick tag in the aspx file.  You will see that it
breaks and you cannot compile.  That is all the link is, as far as I know.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.