what is the relation between delegates and events
Answers were Sorted based on User's Feedback
Answer / yagnesh
An event is declared like a pseudo-variable but based on a delegate. Therefore, to declare an event, you must have a delegate that would implement it.
Is This Answer Correct ? | 10 Yes | 0 No |
Answer / sujatha
delegates are back bone of events.delegates means refer one
or more functions.with out delegates we can not develop
events.
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / rummy
events are implemented using delegates. We can say , events are special case of delegates where a subscriber cannot delete other subscriber. He can only subscribe or unsubscribe from event. Framework also standardized event structure to make them consistent.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / mani
Actually events use delegates in bottom.But they add an
extra layer on the delegates,thus forming the publisher and
subscriber model.
As compare to delegates events work with source and
listener methodology. So listener's who are interested in
receiving some events they subscribe to the source.Once
this subscription is done the source raises to all of it's
listener's when needed. One source can have multiple
listeners.
Is This Answer Correct ? | 4 Yes | 1 No |
explain about Back ground process control in .net
1 Answers Digital Mesh, Infronics,
What are the different types of validation controls provided in ASP.NET?
0 Answers Sans Pareil IT Services,
Mention the namespace that is used to include .net data provider for sql server in .net code?
Define application state variable and session state variable?
I have a textbox , assign required field validator and i have two buttons 1) save 2) cancel , i want the validator run only when i click save button, don't validate cancel button , what to do?
7 Answers eMids, Infotech, Integra, TCS, Wipro,
Which is better asp.net or php?
What are the different properties of server control that exists?
What are runtime hosts?
Where is cookie used in asp.net?
What is content page in asp net?
if i have placed the button control with the OnClick event like <asp:Button ID="mybutton" runat="server" Text="Insert" onclick="mybutton_Click" /> and some other controls(buttons, textboxes) in .aspx page. When i run the page, the button displays in the page source of the browser like <input type="submit" name="mybutton" value="Insert" id="mybutton" /> here, it does not display the onclick event, then how the page calls the button click on the server side, how the server side identify which button cause the submit, and how this page moves to the server side.
What is the life-span of the items in the viewstate?