UrbanPro

Learn ASP.NET from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What are delegates in ASP.NET

Asked by Last Modified  

37 Answers

Learn ASP.NET

Follow 0
Answer

Please enter your answer

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

IT Professional Trainer with above 15 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

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

Software Trainer

Delegate is same as function pointer of C/C++ that is used to refer any method. it can be single cast(refer a single method) and multicast cast(if refer more than one function but return type must be void).
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

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

View 35 more Answers

Related Questions

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
how will do custom sorting using div express controls in asp.net MVC
Using webgrid we can do custom sorting in MVC
Mallikarjuna
What is difference between "throw" and "throw ex" in .Net?
Yes, there is a difference; 1) throw ex resets the stack trace (so your errors would appear to originate from HandleException) 2) throw doesn't - the original offender would be preserved.
SEED Infotech Ltd
What Is Asp ?
ASP.Net is a platform that is used to develope, Web, Desktop, Mobile and other kinds of applications. It supports many languages like C, C++, C#, F#, VB.Net etc. It all runs on a Integrated Development...
Sunita
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

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...

Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

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...

Extension method In C#
Introduction. Hello Guys, In this article, I will explain what is extension method and why and where we should use this. Let’s understand the term extension means we are going to create something...

Why Need for Delegates in C#
.1. TYPE SAFETY FEATURES. 2. OBJECT ORIENRED FEATURES. 3. Lamda Function 4. BRING GENERICS. 1. Type safety means an object when defined has its ability to understand of its own type and maintain...

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
X

Looking for ASP.NET Classes?

The best tutors for ASP.NET Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn ASP.NET with the Best Tutors

The best Tutors for ASP.NET Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more