What are delegates in ASP.NET

Asked by Last Modified  

37 Answers

Follow 0
Answer

Please enter your answer

IT Professional Trainer with 20 years of experience into software IT training

Delegates are type safe function pointers or callbacks. Delegate is a class that holds a reference to a method or function. Delegate class has a signature an it can only refer those methods whose signature is compliant with the class. Delegates are of two types 1) Unicast 2)Multicast
Comments

Coaching

A delegate is a class that can hold a reference to a method. Unlike other classes, a delegate class has a signature, and it can hold references only to methods that match its signature. A delegate is thus equivalent to a type-safe function pointer or a callback. For delegation to work, ASP.NET must...
read more
A delegate is a class that can hold a reference to a method. Unlike other classes, a delegate class has a signature, and it can hold references only to methods that match its signature. A delegate is thus equivalent to a type-safe function pointer or a callback. For delegation to work, ASP.NET must be able to authenticate against the remote server using the credentials of the client you wish to delegate. However, there are numerous factors that determine if delegation can occur, such as Internet Information Services (IIS) authentication scheme, ASP.NET process identity, and the operating systems of the machines involved. In asp.net we are using delegates to create custom events for custom controls.For example, custom pager control most likely needs to have Page Changed event. read less
Comments

objects holding reference of one or more methods
Comments

IT Professional Trainer with 9 years of experience in IT Industry

Delegates are abstract Collection of Members with the help of Delegate u can handle events in C# and using delegate u can pass method as parameter with in the delegate.
Comments

7 yrs Experience along with Microsoft Certified Technology Specialist Trainer for .Net with C# as Language

Delegate is a class that can hold a reference to a method or a function. Delegate class has a signature and it can only reference those methods whose signature is compliant with the class. Delegates are type-safe functions pointers or callbacks.
Comments

Training Centre

For the main Usage is how to read the data from the user control; for reading the data a delegate is used
Comments

SharePoint Administration And Development, Office 365,Advanced .Net C#

well assume you are the author of a button control. You need to call user code when the button is clicked. The user could name his method anything and this method could belong to any class. How does Microsoft know what I am going to name my class and method? A delegate encapsulates the things needed...
read more
well assume you are the author of a button control. You need to call user code when the button is clicked. The user could name his method anything and this method could belong to any class. How does Microsoft know what I am going to name my class and method? A delegate encapsulates the things needed for making the call into an object. What are the things needed for making this call? Your type details like class name, this pointer etc (_target variable) Your method details like method signature, address etc (_methodPtr variable) Reference: http://www.arungudelli.com/csharp/delegates-and-events-in-csharp/ read less
Comments

Trainer

A delegate is a class that can hold a reference to a method. Unlike other classes, a delegate class has a signature, and it can hold references only to methods that match its signature. A delegate is thus equivalent to a type-safe function pointer or a callback.
Comments

Thank You for your question Madhuri..... A delegate is a reference type that holds the reference of the class method. Thank You, Team DishaaPro www.dishaapro.com
Comments

Tutor

If you are familiar with c++, its function pointer. It works as its literal meaning, sharing specific work to some method. With hlp of it you can pass function as parameter can achieve multi threading
Comments

View 35 more Answers

Related Questions

With many online free tutorials in place, does one ever need to hire a mentor to learn a new Technology? if yes, why? i am in the process of learning MVC, linq, and WCF and by far using online resources. if anyone out there is interested in learning, can join me. we can learn together.
definitely,you need to mentor .Because online courses doesn't train in the aspect of real time project experience.But a good trainer who works in a IT will have exposure to all the phases of development...
Ranganath
What is ASP.Net?
ASP.NET is an open source server-side Web application framework designed for Web development to produce dynamic Web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services.
Aadarsh
What is the difference between asp.net and c#.net?
1.Csharp is best known as C#. 2.C# is a programming language used when developing Asp.net. 3.The C# programming language is specially designed for easy use in practically any purpose. 4.Asp.net...
Aadarsh

Hello Sir, I have little bit knowledge of C. Can I continue study Asp.net? Please advice..

for ASP.Net you need the basic programming knoladge in C and C++ OOP Method along with HTML,CSS, and Java Script. Because in ASP.Net Code behind C# is running. C# is based on Object oritented Methodology....
Mitu
0 0
8
How to learn asp.net
asp.net is a web technology, pre requirements for jump start asp.net. you need markup knowledge with styles and dom scripting. then choose your good command on scripting language like c# scripting or vb...
Rahul

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Difference Between View Bag And View Data In Mvc
ViewData belongs to dictionary class whereas view bag is the dynamic object. i.e., dictionary class create objects that validate data for viewdata whereas dynamic object validates data for ViewBag.Also,The...

Service-Level Agreement (SLA) Definition
A service-level agreement (SLA) is a contract between a service provider and its internal or external customers that documents what services the provider will furnish. SLAs originated with network service...
M

Mohammad Shafi

0 0
0

Trends in .Net Platform
.NET Framework is a software framework developed by Microsoft. It includes a large class library named Framework Class Library (FCL) and provides language interoperability (each language can use code written...

why need for Angular js for higher versions of Asp.net framework.
1. Optimization of performance in receiving messages between client and server. 2. Optimised display features. Explanation 1. Earlier versions of Asp.net had lack of performance of message transfer...

ASP.NET Syllabus
Part 1: Getting Started with ASP.NET Lesson 1: Overview Of Asp.Net Lesson 2: Adding Controls To A Web Page Lesson 3: Web Page Processing Lesson 4: Validating User Input Lesson...

Looking for ASP.NET ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you