CodeVerge.Net Beta


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

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 9/15/2003 12:06:31 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
kevinwarner
Asp.Net User
Composite Control Execution Order Problem9/15/2003 12:06:31 AM

0/0

I have a composite control that creates two link buttons...

LinkA
LinkB

I have added click event handlers to each link button as follows...

AddHandler LinkA.Click, AddressOf LinkA_Click
AddHandler LinkB.Click, AddressOf LinkB_Click

Then, of course, I have the two event subroutines to handle the events.

Private Sub LinkA_Click(E As EventArgs)
m_Display = "A"
End Sub

Private Sub LinkB_Click(E As EventArgs)
m_Display="B"
End Sub

So, I set a private variable to a value.

Then, I want to have the control create and display different content based on this value.

The problem is that because the CreateChildControls fires before the event handler sub, the value of the private var is not set yet, and therefore the correct content is not displayed.

What is the better way to approach this?

Thanks! --Kevin
Kevin
hlaford
Asp.Net User
Re: Composite Control Execution Order Problem9/18/2003 7:07:24 PM

0/0

build all parts of the control each time in CreateChildControls. then manipulate visibilities in the event handlers.
cpreinfalk
Asp.Net User
Re: Composite Control Execution Order Problem11/12/2003 9:20:10 PM

0/0

What if I want to create different controls depending of the outcome in an event? E.g. CreateChildControls creates a search criteria field, a search button and a result list (I can't just render the result list, because I want to attach events to every single item of the list). When I enter something in the search criteria field (textbox) and click the button, I can't react in my CreateChildControls accordingly because it gets called before the event handler of the button and therefore I can't generate the correct list.

How would one implement that?
hlaford
Asp.Net User
Re: Composite Control Execution Order Problem11/12/2003 9:51:12 PM

0/0

how are you building your list? the textbox and button are easy. a repeater-style control can be created in the CreateChildControls, too. the important part is that the controls exist, with even handlers in place, by the end of page_load, which directly precedes the event handling phase. and to make things work with ViewState, you should make sure all the controls have IDs assigned to them.
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Essential Windows Workflow Foundation Authors: Dharma Shukla, Bob Schmidt, Pages: 449, Published: 2006
Pascal Plus Data Structures, Algorithms, and Advanced Programming Authors: Nell B. Dale, Susan C. Lilly, Pages: 878, Published: 1995
Innovative Algorithms and Techniques in Automation, Industrial Electronics and Telecommunications Authors: Tarek M Sobh, Khaled Elleithy, SpringerLink (Online service, Ausif Mahmood, Mohammad A Karim, Pages: 551, Published: 2007
Database and Expert Systems Applications: 12th International Conference, DEXA 2001, Munich, Germany, September 3-5, 2001 : Proceedings Authors: Heinrich Christian Mayr, Jiri Lazansky, Gerald Quirchmayr, P. Vogel, Pages: 991, Published: 2001
Management of Multimedia Networks and Services: 6th IFIP/IEEE International Conference, MMNS 2003, Belfast, Northern Ireland, UK, September 7-10, 2003 : Proceedings Authors: Alan Marshall, Nazim Agoulmine, Pages: 532, Published: 2003
Computational Science-- ICCS 2003: International Conference, Melbourne, Australia and St. Petersburg, Russia, June 2-4, 2003 : Proceedings Authors: Peter Sloot, Pages: 1165, Published: 2003
EurAsia-ICT 2002: Information and Communication Technology : First EurAsian Conference, Shiraz, Iran, October 29-31, 2002 : Proceedings Authors: IR EurAsia-ICT 2002 1st Shiraz, Hassan Shafazand, 2002 EurAsian Conference on Advances in Information and Communication Technology <1, Šīrāz, A Min Tjoa, Pages: 1020, Published: 2002
Object-based Distributed Programming: ECOOP '93, Workshop, Kaiserslautern, Germany, July 26-27, 1993 : Proceedings Authors: Rachid Guerraoui, Oscar Marius Nierstrasz, Michel Riveill, Pages: 261, Published: 1993

Web:
Composite Control Execution Order Problem - ASP.NET Forums Re: Composite Control Execution Order Problem. 09-18-2003, 3:07 PM ... Re: Composite Control Execution Order Problem. 11-12-2003, 4:20 PM ...
composite server control - order of execution - ASP.NET Forums Re: composite server control - order of execution ... About this Site. Questions / Problems with this site? Visit our hoster: ORCS Web · Running IIS 7.0 ...
Solumina Manufacturing Execution System - MES, MRO Software ... The Solumina Production Control Composite Application surfaces these part ... Control can try to work around the problem by splitting the work order ...
Modelling Execution Order and Real-time Constraints in IEC 61499 ... and its execution is controlled via an execution. control chart (ECC) which can be seen as a simple. state machine. - Composite function blocks (CFB): A CFB ...
Application Development Trends - Extendible Concurrent Control ... In this execution model, each composite control structure uses a control thread to .... The actual order of execution of components in the parallel control ...
Control Structures - Conditional Execution Control Structures - Conditional Execution. The LOGICAL type; Logical expressions. Relational expressions; Composite logical expressions ...
OOONEIDA Workgroup on IEC 61499 Execution Model Event the draft of the standard 61499 contained such a problem. .... "Modelling Execution Order and Real-time Constraints in IEC 61499 Control Applications" ...
CodeProject: DateTimePicker Web Control. Free source code and ... NET page execution cycle of a composite control without the ..... but i faced problem using it in web user control,it gave javascript erro and not work, ...
VWF310: Encapsulate Custom Business Processes with Custom WF ... ... schedule children for proper execution order through the scheduler queue ... Advanced Composite Control Flow. Enqueue child activities in desired order ...
REALISTIC SIMULATIONS OF EMBEDDED CONTROL SYSTEMS Jie Liu, Johan ... ite actor, so hierarchies can be arbitrarily nested. The. execution order, i.e. the control flow, of the actors in a. composite is determined by a director. ...

Videos:
Charlie Rose - Bush's Iraq Strategy / Richard Clarke / Niki Caro Segment 1: David Sanger of The New York Times and Thomas DeFrank of the New York Daily News discuss President Bush's speech on his strategy for victo...




Search This Site:










viewstate with rendered control

get free hosting on iis7 with database on maximum asp

where do people host their .net 2.0 projects?

domain registration in india

control.designmode

intellisense/designer problems with custom data source control

custom control question, please help

using javascript and styles in designer

major ie complaint (re:htc's) for ms ears

complex question on designers

adding user control properties?

customrepeater control

conceptual doubt

controldesigner class

strange viewstate problem

custom controls ?????

hosting that supports web matrix

application install like on windows update

fileeditor

viewstate for composite control's children

hopefully someone can help me

accessing scroll bar property of div or span controls...

clientscript object not rendering code

custom server control script file

refresh property -- please help

why is runat=server required?

a control's place/value in the framework

hosting competencies at certified partner level?

user control events

asp.net 2.0 hosting with godaddy problem/question

  Privacy | Contact Us
All Times Are GMT