What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 5242 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ASP.NET Interview Questions

Now you don't need go anywhere to get the best interview questions on Microsoft technology. We are trying to gather all real interview questions asked from MNCs and put them here. You can also assist us in doing so by submitting .net interview questions. These questions are generally different from certification questions however it may help you in that too.



Page copy protected against web site content infringement by Copyscape
Application.Lock();

Application["Akiii"] = "This is the value that is stored";
Application.UnLock();



If you are doing multi-threaded programming then it is better to lock the global variable otherwise it may cause useless data read/write.



Thanks and Regards
Akiii

Suppose :-

Application["Akiii"] = "This is the value";


To access the above application object global variable in a different object, we have to do the following :-

string strGlobal = Application["Akiii"].ToString();


In the above, it is essential to use ToString method to convert the value otherwise it will give an compilation error stating "An object cannot be casted to string".



Thanks and Regards
Akiii

It is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators.

In Rx, you can represent multiple asynchronous data streams (that come from diverse sources, e.g., stock quote, tweets, computer events, web service requests, etc.) and subscribe to the event stream using the IObserver<T> interface. The IObservable<T> interface notifies the subscribed IObserver<T> interface whenever an event occurs.

Rx library is available for desktop application development in .NET. It is also released for Silverlight, Windows Phone 7 and JavaScript.

Login controls in asp.net provides form authentication. If we implement authentication without login controls then we have to do it from scratch.

Login control allows easy implementation of form authentication without writing much of code. Underneath the controls, the class used for login control is also FormAuthentication class. So instead of creating your own set of user credential validations and issuing of authentication ticket, it is simpler to use asp.net login control. ASP.NET membership mechanism is used in Login controls.

Fragment caching is a mechanism in which specific portions of a page is cached rather than the whole page. This is done by the use of user controls.

<%@ OutputCache Duration="90" VaryByParam="None"  %>




Thanks and Regards
Akiii

Partial Classes are used when there is some class which is big enough to have multiple number of developers implement the methods in it. This class can be separated and written in different files with the same class name and with a keyword "partial" appended in front of them.

Physically partial classes may be separate but logically they are treated as a single file by the compiler.



Thanks and Regards
Akiii

The steps regarding Passport Authentication are as below :-

(1) Install the Passport SDK
(2) Set the application’s authentication mode to Passport in Web.config(by default it is windows)
(3) Set authorization to deny unauthenticated users
(4) Use the PassportAuthentication_OnAuthenticate event to access the user’s Passport profile to identify and authorize the user. It checks the user’s machine for a current passport authentication cookie
(5) Implement a sign-out procedure to remove Passport cookies from the user’s machine


Thanks and Regards
Akiii

(1) With Passport authentication one can also avail access to various Microsoft services

(2) User doesn’t have to remember separate user names and passwords for various Web sites. User can maintain his or her profile information in a single location.




Thanks and Regards
Akiii

NOTE: This is objective type question, Please click question title for correct answer.

<%@OutputCache Duration="120" %>


In the above, the duration for the output cache of the page is 120 seconds. That means the page is cached for 120 seconds; the server loads the response in memory and retains that response for 120 seconds. Any requests during that time receive the cached response. When the cache duration expires, the next request generates a new response and cached for another 120 seconds.

Caching can be an overhead or a blessing in disguise. It is better to use them wisely !



Thanks and Regards
Akiii

NOTE: This is objective type question, Please click question title for correct answer.

NOTE: This is objective type question, Please click question title for correct answer.

Threats faced by the application can be categorized based on the goals and purpose of the attacks.

STRIDE is the acronym used at Microsoft to categorize different threat types. STRIDE stands for

1) Spoofing
2) Tampering
3) Repudation
4) Information Disclosure
5) Dos (Denial of service)
6) Elevation of privilege.

Current HTTP protocol isn’t designed to be a real-time medium means modern web applications use classic polling solutions(via Ajax) to give the impression of continuous feel.

Polling is a good solution, even though it might suffer from client-to-server and server-to-client latency.

So, we can overcome a structural limitation of the HTTP protocol using WebSocket protocol. It enables bidirectional communication between Web applications and Web servers over a single TCP socket.

It also make possible for a Web application hosted in a browser to stay connected with a Web endpoint all the time while incurring minimal costs such as pressure on the server, memory and resource consumption.

Window identity foundation (WIF) enables .NET developers to externalize identity logic from their application, improving developer productivity, enhancing application security, and enabling interoperability.

It is part of Microsoft's identity and access management Solution built on Active Directory that also includes:

1) Active Directory Federation Services 2.0 : a security token service for IT that issues and transforms claims and other tokens, manages user access and enables federation and access management for simplified SSO (Single Sign-on)


2) Windows Azure Access Control Services: provides an easy way to provide identity and access control to web applications and services.

Found this useful, bookmark this page link to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape
Navigate to Page: 1 | ... | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | ... | 71 |

 More Exclusive ASP.NET Interview Questions and Answers here


Found interesting? Add this to:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 12:53:17 AM