Skip to main content

Posts

Showing posts from November, 2013

Interview Questions Part-III

CLR and C# 1. Types of Authentication and Authorisation in IIS. 2. Types of Authentication and Authorisation in ASP.Net. 3. ASP.Net Life cycle.  4. Page Life Cycle. 5. What are types: Value Type and Reference Type? 6. Boxing and Unboxing: Terminology, Advantages and Disadvantages. 7. What is Type Safety?  8. What is Strong Name? 9. What are Extensions, modules and handlers? 10. What is worker process?

How to create WCF service, Host service in IIS & cosume it in web application

creating, hosting & consuming of wcf service is explained using one small example. To know how to create, host & consume wcf service follow below steps. In Visual Studio go to "File" -> "New" -> "Project..." then select "C#" -> "WCF" -> "WCF Service Library".

ReadOnly Properties in .net

There is nothing like readonly properties because readonly keyword is applied only to field members. and readonly members are initialized only in the constructors.  We can have properties which has only get block and no set block which allows only to return the values but not set or assign the value.  Ex: private int _i=5; public int i //this property allows to get the value of _i variable but we cant set the value of _i. {    get    {       return _i;     } }

Detecting the languages set in user's browser

Automatic detection of the language preference of the user as set in his browser In your web.config file, you need to set the following globalization tag with the values that are presented below: <system.web>    <globalization           uiCulture="auto"           culture="auto"           enableClientBasedCulture="true" /> </system.web>

Logging In Using External Sites in an ASP.NET Web Pages

ASP.NET Web Pages to includes support for  OAuth  and  OpenID  providers. Using these providers, you can let users log into your site using their existing credentials from Facebook, Twitter, Windows Live, Google, and Yahoo. For example, to log in using a Facebook account, users can just choose a Facebook icon, which redirects them to the Facebook login page where they enter their user information. They can then associate the Facebook login with their account on your site. A related enhancement to the Web Pages membership features is that users can associate multiple logins (including logins from social networking sites) with a single account on your website.