Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
Is it possible to have shared events?
Posted By :
Posted Date :
July 31, 2011
Yes, wecan have shared event's for only shared methods that can raise shared events.
You can also find related Interview Question to
Is it possible to have shared events?
Where are shared assemblies stored in .NET?
Shared Assemblies are stored in Global Assembly Cache also known as GAC.
What events can be used to execute a set of statements based on a specified interval ?
What are private assemblies and shared assemblies?
A private assembly is used only by a single application, and is stored in that application's install directory (or a subdirectory therein). A shared assembly is one that can be referenced by more than one application. In order to share an assembly, the assembly must be explicitly built for this purpose by giving it a cryptographically strong name (referred to as a shared name). By contrast, a private assembly name need only be unique within the application that uses it.
By making a distinction between private and shared assemblies, we introduce the notion of sharing as an explicit decision. Simply by deploying private assemblies to an application directory, you can guarantee that that application will run only with the bits it was built and deployed with. References to private assemblies will only be resolved locally to the private application directory.
There are several reasons you may elect to build and use shared assemblies, such as the ability to express version policy. The fact that shared assemblies have a cryptographically strong name means that only the author of the assembly has the key to produce a new version of that assembly. Thus, if you make a policy statement that says you want to accept a new version of an assembly, you can have some confidence that version updates will be controlled and verified by the author. Otherwise, you don't have to accept them.
For locally installed applications, a shared assembly is typically explicitly installed into the global assembly cache (a local cache of assemblies maintained by the .NET Framework). Key to the version management features of the .NET Framework is that downloaded code does not affect the execution of locally installed applications. Downloaded code is put in a special download cache and is not globally available on the machine even if some of the downloaded components are built as shared assemblies.
The classes that ship with the .NET Framework are all built as shared assemblies.
If I want to build a shared assembly, does that require the overhead of signing and managing key pairs?
Building a shared assembly does involve working with cryptographic keys. Only the public key is strictly needed when the assembly is being built. Compilers targeting the .NET Framework provide command line options (or use custom attributes) for supplying the public key when building the assembly. It is common to keep a copy of a common public key in a source database and point build scripts to this key. Before the assembly is shipped, the assembly must be fully signed with the corresponding private key. This is done using an SDK tool called SN.exe (Strong Name).
Strong name signing does not involve certificates like Authenticode does. There are no third party organizations involved, no fees to pay, and no certificate chains. In addition, the overhead for verifying a strong name is much less than it is for Authenticode. However, strong names do not make any statements about trusting a particular publisher. Strong names allow you to ensure that the contents of a given assembly haven't been tampered with, and that the assembly loaded on your behalf at run time comes from the same publisher as the one you developed against. But it makes no statement about whether you can trust the identity of that publisher.
What is the order of PageRequestManager class events ,when a single asynchronous AJAX request is made?
In ASP.NET page framework an automatic way to associate page events and methods is
AutoEventWireup attribute of the Page directive is set to true
Which controls do not have events?
What is the order of events in a web form?
3. Cached post back events;
Where are shared assemblies stored?
In Global assembly cache.
Which class defines different events for controls in C#?
The "Control" class defines a number of events that are common to many controls.
Name at least 3 shared services available in MOSS 2007
2) Excel Services
3) Forms Services
4) Personal Sites
What is "Shared Lock"?
Shared lock is also known as "S Lock" and is also called a Read Lock. it allows other transaction to read a record.
What are Events fired for User Control in ASP.NET ?
The Sequence of User controls Execution as follows.
OnInit of the user control
OnInit of the containing page
OnLoad of the containing page
OnLoad of the user control
Name the Events that are implemented by NavigationService?
1)Navigating:- Occurs when a new navigation is requested. Can be used to cancel the navigation.
2)NavigationProgress:- Occurs periodically during a download to provide navigation progress information.
3)Navigated:- Occurs when the page has been located and downloaded.
4)NavigationStopped:- Occurs when the navigation is stopped (by calling StopLoading), or when a new navigation is requested while a current navigation is in progress.
5)NavigationFailed:- Occurs when an error is raised while navigating to the requested content.
6)LoadCompleted:- Occurs when content that was navigated to is loaded and parsed, and has begun rendering.
7)FragmentNavigation:- Occurs when navigation to a content fragment begins, which happens:
a)Immediately, if the desired fragment is in the current content.
b)After the source content has been loaded, if the desired fragment is in different content.
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend