Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > User control handling events coverting code to VB from C#

Thread Tools

User control handling events coverting code to VB from C#

Posts: n/a
I am new to so I am not sure how to translate this C# code I saw on the
web, for handling events from a user control.

public class Defaultage
protected Panel headerPanel, footerPanel;
protected void Page_Load(object sender, EventArgs e)
//Load the Header Control
Control headerControl = LoadControl("header.ascx");
//Load the Footer Control
Control footerControl = LoadControl("footer.ascx");
//Wire-Up the EventHandler of Header Control
//With the method from the Footer Control
new ColorChangedEventHandler(((footer)footerControl).U pdateLabel);
//Add the Header Control to the Panel
//Add the Footer Control to the Panel

Here is a link to the whole page of the C3 code

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
Coverting WAV file to ASCII VHDL 4 04-08-2005 08:16 AM
Please help with handling events in a tabstrip/multipage/user control environment Aaron ASP .Net Web Controls 3 01-27-2005 10:15 PM
( Handling user-control events Yossi ASP .Net Building Controls 3 09-12-2003 11:02 PM
Handling Events: Web user control VS. Std ASPX page Michael Craig ASP .Net 0 07-18-2003 07:30 PM