GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  Next Question 
 ASP.NET 2.0  |  Question 121 of 159    Print  
How to handle UserControl event in another UserControl in same single webpage?

  
Total Answers and Comments: 1 Last Update: January 11, 2008     Asked by: anand 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 11, 2008 09:22:55   #1  
jdoggz316 Member Since: February 2007   Contribution: 3    

RE: How to handle UserControl event in another UserControl in same single webpage?
You would accomplish this by having its containing parent page be a mediator between the two user controls. The parent aspx page would subscribe to the public event on user control 1, will hookup a delegate handler to it.

Then there are two ways to handle this event inside user control 2:
- in the event handler on the parent page, call a public method of user control 2 which is designed to handle the event on user control 2

- have a public event defined in the parent aspx page which user control 2 subscribes to and fire this event from the parent aspx page when user control 1 fires its event (that is wired up to the parent aspx page)


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Differneces between Single Call & Singleton.Single Call objects service one and only one request coming in. Single Callobjects are useful in scenarios where the objects are required to do afinite amount of work. Single Call objects are usually not required ...

Latest Answer : As many as you Can, Remember the max size of a dll is 4GB ...

System.Web.UI.Ipostback event handler interface to raise event responses on the server to postback calls from the client. This can be a bit tricky, and I would recommend thoroughly examining what you might 
Latest Answer : Only Anishcp is correct. Before answering any question, please do read the question carefully as the question is about "IPostback"  not "IsPostback". Find more at System.Web.UI.Ipostback event handler interface. ...

Latest Answer : Interface : Much more useful in composition (Delegation approach of programming)Objects are accessed solely through their interfaces.:Abstract Classes: Basically used as base class. for instance business entity base class. ...
Read Answers (5) | Asked by : mdchaus

How to write the OnSelectedIndexChanged event for the inside of the gridview HyperLinkField in Asp.net.

Latest Answer : You would accomplish this by having its containing parent page be a mediator between the two user controls. The parent aspx page would subscribe to the public event on user control 1, will hookup a delegate handler to it. Then there are two ways to handle ...
Read Answers (1) | Asked by : anand

Question: Can you define basic element of WebServices and explain any one from them?Answer: These are as follows SOAP, WSDL and UDDI. And I am explaining about the SOAP(Simple Object Access Protocol) it 
View Question | Asked by : umesh_20012

In web.config file how many cookies we can used?? plz help me  
Latest Answer : Generally 20 cookies we can use ...
Read Answers (4) | Asked by : dilraj

I have created a custom control to get the values and sum them, Here I am able to get display the controls but I am not able to add the values in the text box which means that I am not able to catch the 
Latest Answer : First you may build the control ex Button b = new Button(); b.Text = "ex"; Then you add the button to other control right ? like this.control.add(b); but before add the button (b) to other control, you add the even to the button (b) because its a button, ...

Which namespace is used for event log support? 
Latest Answer : System.Diagnostics ...


 Sponsored Links

 
Related Articles

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving a Single Row of Information Using OracleDataAdapter

ODP NET Retrieving a Single Row of Information Using OracleDataAdapter In the previous example we worked with a set of rows in the DataTable object Now we shall work with a particular row using the DataTable object The following code accepts an employee number from the user and gives you the details
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

JavaScript OnError Event

JavaScript OnError Event In this JavaScript tutorial you will learn about onerror event how to use onerror event along with syntax and example mosgoogle center Using onerror event The onerror event fires when a page has a script error This onerror event occurs in JavaScript when an image or document
 

JavaScript Event Handler

JavaScript Event Handler In this JavaScript tutorial you will learn about using event handlers along with events for each HTML tag mosgoogle center Using Event Handler in JavaScript Event Handlers are used in JavaScript by placing the name of the event handler inside the HTML tag associated with obj
 

SOA 2.0 Event Driven Architecture

SOA 2 0 Event Driven Architecture There has been much negative press in recent years in regards to Oracle’ s touting of SOA 2 0 as the next generation version of SOA Its combination of Event Driven Architecture with SOA considers the first iteration of SOA to be a mere client server drive
 

JavaScript Event Object Properties and Methods

JavaScript Event Object Properties and Methods In this JavaScript tutorial you will learn about event object properties and methods like keycode layer offset modifiers page reason returnValue screen srcElement target srcFilter and type mosgoogle center keycode The keycode property of event object is
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

JavaScript Event Object

JavaScript Event Object In this JavaScript tutorial you will learn about JavaScript event object properties of event object altKey ctrlKey and shiftKey button integer value action representation cancelBubble clientX and clientY fromElement and toElement height and width mosgoogle event Object The ev
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape