CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 12/4/2003 8:37:20 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 55 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
macha27
Asp.Net User
controls handling events of parent page12/4/2003 8:37:20 PM

0/0

Hi,

Normally, controls raise event and the page handles those events - is the reverse possible. In other words, is it possible to have a group of custom webcontrols watch for an event in a page and perform an action based on that event.

For example lets say I had 20 custom textboxes on a page. In the pageload, I raise some kind of event. All the 20 textboxes on the page change their color to red.

I know how to do this by recursion or findControl but I would like to know if it is possible to use events and custom controls that handle parent events for this or if there is a better way to do it.

Thanks,
-ron
joteke
Asp.Net User
Re: controls handling events of parent page12/5/2003 9:20:01 AM

0/0

Well, is there a custom event? I mean control lifecycle and page lifecycle are very similar say instead of handling Page's Init event, why not just handling Control's Init event (or override OnInit method) and do the job there?

Certainly in the Control you can wire an event handler for Page's event, say:

this.Page.Error += new EventHandler(myErrorMethod);


If you have custom event that you declare in Page's code-behind, you need to cast the Page to its code-behind type in the control to be able to attach an event handler (this then makes assumptions on the Page the control is used on)


Thanks,

Teemu Keiski
Finland, EU
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
ASP.NET Kick Start: Kick Start Authors: Stephen Walther, Pages: 624, Published: 2002
ASP.NET in a Nutshell: In a Nutshell Authors: G. Andrew Duthie, Matthew MacDonald, Pages: 979, Published: 2003
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
Programming C#: Building .NET Applications with C# Authors: Jesse Liberty, Pages: 644, Published: 2005
ASP.NET Unleashed: unleashed Authors: Stephen Walther, Pages: 1488, Published: 2003
Programming Data-driven Web Applications with ASP.NET Authors: Don Wolthuis, Donny Mack, Doug Seven, Pages: 704, Published: 2002
Professional ASP.NET 1.1 Authors: Alex Homer, Dave Sussman, Rob Howard, Brian Francis, Karli Watson, Richard Anderson, Pages: 1337, Published: 2004

Web:
Parent page handling user control events - ASP.NET Forums Re: Parent page handling user control events. 01-11-2004, 5:04 PM ... Re: Parent page handling user control events. 01-11-2004, 8:20 PM ...
CodeProject: Event handling in Gridview User Control. Free source ... Jun 25, 2007 ... Create Gridview as user control so you can customize columns ,its events (using event bubbling) in parent page. ...
Flex 3 - Handling events in a DataGrid control Handling events in a DataGrid control. The DataGrid control and the .... element in the parent container that can receive focus. Up Arrow Home. Page Up ...
.NET ASP.NET webcontrols handling events in usercontrols handling events in usercontrols - jbhoppe. 24-Jun-08 11:39:01 ... Would it be something like ... handles me.parent.page. ...
Calendar Control inside Repeater, Handling Child control events in ... ... Handling Child control events in parent Data Control ... to build a page that will display custom form fields/controls for individual ...
Peachpit: The JavaScript Environment > Handling Events Your handlers for the menuSignal (page 363) and control events such as onClick ... the handler for the topmost parent (the window object) is called first, ...
CodeProject: Event handling in Gridview User Control. Free source ... Now create events in User control to access it on parent (aspx) page.we will ... Event Bubbling can be applied to any User Control for event handling. ...
ascx handling events : vb.net I need the parent page to be able to access the return value based on the .... There are three because i have 3 events in my control, I think you just have ...
Inside Microsoft: Working with TreeView WebControl Part 2 ... Like others server controls, the TreeView WebControl can handle events arising from .... With "first level parent" I define the TreeNode element with a "0.i ...
InformIT: Responding to COM Events in .NET Applications > Handling ... Handling ActiveX Control Events in Managed Code .... DWebBrowserEvents2 65: { 66 : private AxWebBrowser parent; 67: 68: public ...

Videos:
Salawati Movie (English Subtitles) ((www.salawatimovie.com)) Salawati is the story of a 12-year-old Singaporean-Malay girl who has just witnessed the death of her older brother, Shahim...
Salawati Teaser (English Subtitle) ((www.salawatimovie.com)) Salawati is the story of a 12-year-old Singaporean-Malay girl who has just witnessed the death of her older brother, Shahim...
Salawati Movie (Malay Subtitle) ((www.salawatimovie.com)) Salawati is the story of a 12-year-old Singaporean-Malay girl who has just witnessed the death of her older brother, Shahim...
Salawati Teaser (Malay Subtitle) ((www.salawatimovie.com)) Salawati is the story of a 12-year-old Singaporean-Malay girl who has just witnessed the death of her older brother, Shahim...
Homeless In Santa Monica with John Maceri Google TechTalks February 28, 2006 John Maceri Abstract: Every night there 84,00 people sleeping on the streets of Los Angeles. From this large num...
Dont let your body get into safe mode Obaid Karki Outcast Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Urban Talkshow Guru. Unaffiliate...
The Morning Star of Wittenberg: The Life of Katie Luther The Morning Star of Wittenberg The Life of Katie Luther Do you want to know more about Katharina von Bora? The Morning Star of Wittenberg tells the...
I was having nine ugly Tummies of toxic waste fat dump Obaid Karki Outcast Spinoziste Pantheon Hexalingual Automath Former UAE Under Secretary Independant Street-Knowledge Urban Talkshow Guru. Unaffiliate...
Long Beach City Council Meeting Long Beach City Council Meeting
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










am i understanding this correctly?

foo.aspx has not been pre-compiled error (again!)

include a dll in a web deployment project

local resources

error in creating setup

access is denied. (exception from hresult: 0x80070005 (e_accessdenied))

custom action

@(precompiledoutput) emtpy in afterbuild target

web deployment. ftp.

no "add web deployment project" for web application

aspnetmerge warning 'cannot find any assemblies that can be merged'

vs2005 crashes

bug: rdlc gets coverted to 1k file after deployment through wdp

dsn or not dsn

creating a separate assembly for each page and control output

specifying .net verson for a asp.net web application in vs 2005

how to automate creating\updating web references during build process

how to deploy a global theme

doesn't allow umlauts

assembly reference problems in build of solution with multiple websites

"merge each folder output to its own assembly" doesn't work with wap?

deploy files when code or ui changes?

web deplyment problems: proxy error but i don't have proxy

error creating deployment project

unable to start debugging on the web server - vs 2005 error

web application project & web deployment project, but not aspnet_merge.exe?

nunit and wdp

wdp and visual sourcesafe

where do i put app_localresources[path]_[control].* files?

webdeploy and vista

  Privacy | Contact Us
All Times Are GMT