Asp Interview Questions And Answers

Asp interview questions and answers on advance and basic Asp with example so this page for both freshers and experienced condidate. Fill the form below we will send the all interview questions on Asp also add your Questions if any you have to ask and for apply in Asp Tutorials and Training course just send a mail on in detail about your self.

Top Asp interview questions and answers for freshers and experienced

What is Asp ?

Answer :

Questions : 1 :: What is ASP

ASP is the Active server page

Questions : 2 :: What is ASP.NET?

ASP.NET is a specification developed by Microsoft to create dynamic Web applications, Web sites, and Web services. It is a part of .NET Framework. You can create ASP.NET applications in most of the...View answers

Questions : 3 :: What is the basic difference between ASP and ASP.NET?

The basic difference between ASP and ASP.NET is that ASP is interpreted; whereas, ASP.NET is compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is...View answers

Questions : 4 :: In which event are the controls fully loaded?

Page load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you will see that view state is not fully loaded during this...View answers

Questions : 5 :: How can we identify that the Page is Post Back?

Page object has an "IsPostBack" property, which can be checked to know that is the page posted back.

Questions : 6 :: What is the lifespan for items stored in ViewState?

The items stored in ViewState live until the lifetime of the current page expires including the postbacks to the same page.

Questions : 7 :: Describe state management in ASP.NET.

State management is a technique to manage a state of an object on different request. The HTTP protocol is the fundamental protocol of the World Wide Web. HTTP is a stateless protocol means every...View answers

Questions : 8 :: Explain client side state management system.

ASP.NET provides several techniques for storing state information on the client. These include the following: - view state ASP.NET uses view state to track values in controls between page requests....View answers

Questions : 9 :: Explain server side state management system.

The following objects are used to store the information on the server: - Application State: This object stores the data that is accessible to all pages in a given Web application. The Application...View answers

Questions : 10 :: Explain cookies with example.

A cookie is a small amount of data that server creates on the client. When a web server creates a cookie, an additional HTTP header is sent to the browser when a page is served to the browser. The...View answers

Questions : 11 :: Describe the disadvantage of cookies.

- Cookie can store only string value. - Cookies are browser dependent. - Cookies are not secure. - Cookies can store small amount of data.

Questions : 12 :: What is Session object? Describe in detail.

HTTP is a stateless protocol; it can't hold the user information on web page. If user inserts some information, and move to the next page, that data will be lost and user would not able to retrieve...View answers

Questions : 13 :: What are the Advantages and Disadvantages of Session?

Following are the basic advantages and disadvantages of using session. Advantages: - It stores user states and data to all over the application. - Easy mechanism to implement and we can store any...View answers

Questions : 14 :: Describe the Master Page.

Master pages in ASP.NET works as a template that you can reference this page in all other content pages. Master pages enable you to define the look and feel of all the pages in your site in a single...View answers

Questions : 15 :: How you can access the Properties and Controls of Master Pages from content pages?

You can access the Properties and Controls of Master Pages from content pages. In many situations you need User’s Name in different content pages. You can set this value inside the master page...View answers

Questions : 16 :: What are the different method of navigation in ASP.NET?

Page navigation means moving from one page to another page in your web site and another. There are many ways to navigate from one page to another in ASP.NET. - Client-side navigation - Cross-page...View answers

Questions : 17 :: What does the Orientation property do in a Menu control?

Orientation property of the Menu control sets the display of menu on a Web page to vertical or horizontal. Originally the orientation is set to vertical.

Questions : 18 :: Differentiate between Client-side and server-side validations in Web pages.

Client-side validations happends at the client's side with the help of JavaScript and VBScript. This happens before the Web page is sent to the server. - Server-side validations occurs place at the...View answers

Questions : 19 :: Differentiate between Authentication and authorization.

Authentication is the process of verifyng the identity of a user using some credentials like username and password while authorization determines the parts of the system to which a particular...View answers

Questions : 20 :: What does the .WebPart file do?

It explains the settings of a Web Parts control that can be included to a specified zone on a Web page.

Questions : 21 :: How would you enable impersonation in the web.config file?

In order to enable the impersonation in the web.confing file, take the following steps: - Include the <identity> element in the web.config file. - Set the impersonate attribute to true as...View answers

Questions : 22 :: Differentiate between File-based dependency and key-based dependency.

In file-based dependency, the dependency is on a file saved in a disk while in key-based dependency, you depend on another cached...View answers

Questions : 23 :: Differentiate between Globalization and localization.

Globalization is a technique to identify the part of a Web application that is different for different languages and separate it out from the web application while in localization you try to...View answers

Questions : 24 :: Differentiate between a page theme and a global theme?

Page theme applies to a particular web pages of the project. It is stored inside a subfolder of the App_Themes folder. - Global theme applies to all the web applications on the web server. It is...View answers

Questions : 25 :: What are Web server controls in ASP.NET?

These are the objects on ASP.NET pages that run when the Web page is requested. - Some of these Web server controls, like button and text box, are similar to the HTML controls. - Some controls...View answers

Questions : 26 :: Differentiate between a HyperLink control and a LinkButton control.

A HyperLink control does not have the Click and Command events while the LinkButton control has them, which can be handled in the code-behind file of the Web...View answers

Questions : 27 :: How do Cookies work? Give an example of their abuse.

The server directs the browser to put some files in a cookie. All the cookies are then sent for the domain in each request. - An example of cookie abuse could be a case where a large cookie is...View answers

Questions : 28 :: What are Custom User Controls in ASP.NET?

These are the controls defined by developers and work similart to other web server controls. They are a mixture of custom behavior and predefined behavior....View answers

Questions : 29 :: What is Role-based security?

Used in almost all organization, the Role-based security assign certain privileges to each role. - Each user is assigned a particular role from the list. - Privileges as per role restrict the...View answers

Questions : 30 :: What are the HTML server controls in ASP.NET?

HTML server controls are similar to the standard HTML elements like those used in HTML pages. - They expose properties and events for programatical use. - To make these controls programmatically...View answers

Questions : 31 :: What are the various types of Cookies in ASP.NET?

There exist two types of cookies in ASP.NET - Session Cookie - It resides on the machine of the client for a single session and works until the user logs out of the session. - Persistent Cookie -...View answers

Questions : 32 :: How would you turn off cookies on one page of your website?

This can be done by using the Cookie.Discard property. - It Gets or sets the discard flag set by the server. - When set to true, this property instructs the client application not to save the...View answers

Questions : 33 :: How would you create a permanent cookie?

Permanent cookies are stored on the hard disk and are available until a specified expiration date is reached. - To create a cookie that never expires set its Expires property equal to...View answers

Questions : 34 :: Explain Culture and UICulture values.

Culture value determines the functions like Date and Currency used to format data and numbers in a Web page. - UICulture value determines the resources like strings or images loaded in a Web...View answers

Questions : 35 :: What is Global.asax file used for?

It executes application-level events and sets application-level variables.

Questions : 36 :: Explain ASP.NET Web Forms.

- Web Forms are an extremely important part of ASP.NET. - They are the User Interface (UI) elements which provide the desired look and feel to your web applications. - Web Forms provide properties,...View answers

Questions : 37 :: What is event bubbling?

- When child control send events to parent it is termed as event bubbling. - Server controls like Data grid, Data List, and Repeater can have other child controls inside them....View answers

Questions : 38 :: What are the various types of validation controls provided by ASP.NET?

ASP.NET provides 6 types of validation controls as listed below: i.) RequiredFieldValidator - It is used when you do not want the container to be empty. It checks if the control has any value or...View answers

Questions : 39 :: How information about the user's locale can be accessed?

The information regarding a user's locale can be accessed by using the System.Web.UI.Page.Culture property.

Questions : 40 :: What is the difference between SQL notification and SQL invalidation?

The SQL cache notification generates notifications when the data of a database changes, on which your cache item depends. The SQL cache invalidation makes a cached item invalid when the data stored...View answers

Questions : 41 :: Which is the parent class of the Web server control?

The System.Web.UI.Control class is the parent class for all Web server controls.

Questions : 42 :: Can you set which type of comparison you want to perform by the CompareValidator control?

Yes, by setting the Operator property of the CompareValidator control.

Questions : 43 :: What is the behavior of a Web browser when it receives an invalid element?

The behavior of a Web browser when it receives an invalid element depends on the browser that you use to browse your application. Most of the browsers ignore the invalid element; whereas, some of...View answers

Questions : 44 :: What are the advantages of the code-behind feature?

The code-behind feature of ASP.NET offers a number of advantages: Makes code easy to understand and debug by separating application logic from HTML tags Provides the isolation of effort between...View answers

Questions : 45 :: Differentiate between Namespace and Assembly.

Namespace is a naming convenience for logical design-time while an assembly establishes the name scope for types at run time....View answers

Questions : 46 :: Early binding and late binding.

Early binding means calling a non-virtual method that is decided at a compile time while Late binding refers to calling a virtual method that is decided at a...View answers

Questions : 47 :: What are the different kinds of assemblies?

There can be two types of assemblies. i.) Static assemblies - - They are stored on disk in portable executable files. - It includes .NET Framework types like interfaces and classes, resources...View answers

Questions : 48 :: Differentiate between Structure and Class.

Structures are value type while Classes are reference type. - Structures can not have constructor or destructors while Classes can have them. - Structures do not support Inheritance while Classes...View answers

Questions : 49 :: Explain ViewState.

- It is a .Net mechanism to store the posted data among post backs. - It allows the state of objects to be stored in a hidden field on the page, saved on client side and transported back to server...View answers

Questions : 50 :: What are the various types of Authentication?

There are 3 types of Authentication namely Windows, Forms and Passport Authentication. - Windows authentication - It uses the security features integrated in Windows NT and Windows XP OS to...View answers

Questions : 51 :: Explain Server-side scripting and Client-side scripting.

- Server side scripting - All the script are executed by the server and interpreted as needed. - Client side scripting means that the script will be executed immediately in the browser such as form...View answers

Questions : 52 :: What is garbage collection?

It is a system where a run-time component takes responsibility for managing the lifetime of objects and the heap memory that they occupy....View answers

Questions : 53 :: Explain serialization and deserialization.

- Serialization is the process of converting an object into a stream of bytes. - Deserialization is the process of creating an object from a stream of bytes. Both these processes are usually used...View answers

Questions : 54 :: What are the various session state management options provided by ASP.NET?

- ASP.NET provides two session state management options - In-Process and Out-of-Process state management. - In-Process stores the session in memory on the web server. - Out-of-Process stores data...View answers

Questions : 55 :: Describe how Passport authentication works.

ASP.NET application with Passport authentication implemented checks the user’s machine for a current passport authentication cookie. If it is not available, ASP.NET directs the user to a...View answers

Questions : 56 :: Explain the steps to be followed to use Passport authentication.

1. Install the Passport SDK. 2. Set the application’s authentication mode to Passport in Web.config. 3. Set authorization to deny unauthenticated users. 3. Use the...View answers

Questions : 57 :: Explain the advantages of Passport authentication.

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. Passport authentication also avail...View answers

Questions : 58 :: What is caching?

Caching is the technique of storing frequently used items in memory so that they can be accessed more quickly. By caching the response, the request is served from the response already stored in...View answers

Questions : 59 :: Explain the use of duration attribute of @OutputCache page directive.

The @OutputCache directive’s Duration attribute determines how long the page is cached. If the duration attribute is set to 60 seconds, the Web form is cached for 60 seconds; the server loads...View answers

Questions : 60 :: How do you sign out from forms authentication?

The FormsAuthentication.Signout() method is used to sign out from the forms authentication.

Questions : 61 :: What is AutoPostBack?

If you want a control to postback automatically when an event is raised, you need to set the AutoPostBack property of the control to...View answers

Questions : 62 :: What is the function of the ViewState property?

The ASP.NET 4.0 introduced a new property called ViewStateMode for the Control class. Now you can enable the view state to an individual control even if the view state for an ASP.NET page is...View answers

Questions : 63 :: Why do you use the App_Code folder in ASP.NET?

The App_Code folder is automatically present in the project. It stores the files, such as classes, typed data set, text files, and reports. If this folder is not available in the application, you can...View answers

Questions : 64 :: Define a multilingual Web site.

A multilingual Web site serves content in a number of languages. It contains multiple copies for its content and other resources, such as date and time, in different languages.

Questions : 65 :: What is an ASP.NET Web Form?

ASP.NET Web forms are designed to use controls and features that are almost as powerful as the ones used with Windows forms, and so they are called as Web forms. The Web form uses a server-side...View answers

Questions : 66 :: Explain how a web application works.

A web application resides in the server and serves the client's requests over internet. The client access the web page using browser from his machine. When a client makes a request, it receives the...View answers

Questions : 67 :: Explain the advantages of ASP.NET.

Following are the advantages of ASP.NET. Web application exists in compiled form on the server so the execution speed is faster as compared to the interpreted scripts. ASP.NET makes development...View answers

Questions : 68 :: Explain the different parts that constitute ASP.NET application.

Content, program logic and configuration file constitute an ASP.NET application. Content files Content files include static text, images and can include elements from database. Program logic...View answers

Questions : 69 :: Describe the sequence of action takes place on the server when ASP.NET application starts first time

Following are the sequences: IIS starts ASP.NET worker process - worker process loads assembly in the memory - IIS sends the request to the assembly - the assembly composes a response using program...View answers

Questions : 70 :: Explain the components of web form in ASP.NET

Server controls The server controls are Hypertext Markup Language (HTML) elements that include a runat=server attribute. They provide automatic state management and server-side events and respond to...View answers

Questions : 71 :: Describe in brief .NET Framework and its components.

.NET Framework provides platform for developing windows and web software. ASP.NET is a part of .Net framework and can access all features implemented within it that was formerly available only...View answers

Questions : 72 :: What is an Assembly? Explain its parts

An assembly exists as a .DLL or .EXE that contains MSIL code that is executed by CLR. An assembly contains interface and classes, it can also contain other resources like bitmaps, files etc. It...View answers

Questions : 73 :: Define Common Type System.

.Net allows developers to write program logic in at least 25 languages. The classes written in one language can be used by other languages in .Net. This service of .Net is possible through CTS which...View answers

Questions : 74 :: Define Virtual folder.

It is the folder that contains web applications. The folder that has been published as virtual folder by IIS can only contain web...View answers

Questions : 75 :: Describe the Events in the Life Cycle of a Web Application

A web application starts when a browser requests a page of the application first time. The request is received by the IIS which then starts ASP.NET worker process (aspnet_wp.exe). The worker process...View answers

Questions : 76 :: What are the ways of preserving data on a Web Form in ASP.NET?

ASP.NET has introduced view state to preserve data between postback events. View state can't avail data to other web form in an application. To provide data to other forms, you need to save data in...View answers

Questions : 77 :: Define application state variable and session state variable.

These objects provide two levels of scope: Application State Data stored in the application object can be shared by all the sessions of the application. Application object stores data in the key...View answers

Questions : 78 :: Describe the application event handlers in ASP.NET

Following are the application event handlers: Application_Start: This event occurs when the first user visits a page of the application. Application_End: This event occurs when there are no more...View answers

Questions : 79 :: What are the Web Form Events available in ASP.NET?

Page_Init Page_Load Page_PreRender Page_Unload Page_Disposed Page_Error Page_AbortTransaction Page_CommitTransaction...View answers

Questions : 80 :: Describe the Server Control Events of ASP.NET.

ASP.NET offers many server controls like button, textbox, DropDownList etc. Each control can respond to the user's actions using events and event handler mechanism. There are three types of server...View answers

Questions : 81 :: How do you change the session time-out value?

The session time-out value is specified in the web.config file within sessionstate element. You can change the session time-out setting by changing value of timeout attribute of sessionstate element...View answers

Questions : 82 :: Describe how ASP.NET maintains process isolation for each Web application

In ASP.NET, when IIS receives a request, IIS uses aspnet_isapi.dll to call the ASP.NET worker process (aspnet_wp.exe). The ASP.NET worker process loads the Web application's assembly, allocating one...View answers

Questions : 83 :: Define namespace.

Namespaces are the way to organize programming code. It removes the chances of name conflict. It is quite possible to have one name for an item accidentally in large projects those results into...View answers

Questions : 84 :: What are the options in ASP.NET to maintain state?

Client-side state management This maintains information on the client’s machine using Cookies, View State, and Query Strings. Cookies A cookie is a small text file on the client machine either...View answers

Questions : 85 :: Explain the difference between Server control and HTML control.

Server events Server control events are handled in the server whereas HTML control events are handled in the page. State management Server controls can maintain data across requests using view state...View answers

Questions : 86 :: What are the validation controls available in ASP.NET?

ASP.NET validation controls are: RequiredFieldValidator: This validates controls if controls contain data. CompareValidator: This allows checking if data of one control match with other control....View answers

Questions : 87 :: Define the steps to set up validation control.

Following are the steps to set up validation control Drag a validation control on a web form. Set the ControlToValidate property to the control to be validated. If you are using CompareValidator,...View answers

Questions : 88 :: What are the navigation ways between pages available in ASP.NET?

Ways to navigate between pages are: Hyperlink control Response.Redirect method Server.Transfer method Server.Execute method Window.Open script...View answers

Questions : 89 :: How do you open a page in a new window?

To open a page in a new window, you have to use client script using onclick="" attribute of HTML...View answers

Questions : 90 :: Define authentication and authorization.

Authorization: The process of granting access privileges to resources or tasks within an application. Authentication: The process of validating the identity of a...View answers

Questions : 91 :: What is the difference between a default skin and a named skin?

The default skin is applied to all the Web server controls in a Web form, which are of similar type, and it does not provide a Skin ID attribute. The named skin provides a Skin ID attribute and users...View answers

Questions : 92 :: What is IIS? Why is it used?

Internet Information Services (IIS) is created by Microsoft to provide Internet-based services to ASP.NET Web applications. It makes your computer to work as a Web server and provides the...View answers

Questions : 93 :: What is Query String? What are its advantages and limitations?

The Query String helps in sending the page information to the server. The Query String has the following advantages: Every browser works with Query Strings. It does not require server resources...View answers

Questions : 94 :: What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

When a browser requests an .aspx file then the server returns a response, which is rendered into a HTML string.

Questions : 95 :: How can you display all validation messages in one control?

The ValidationSummary control displays all validation messages in one control.

Questions : 96 :: Which two new properties are added in ASP.NET 4.0 Page class?

The two new properties added in the Page class are MetaKeyword and MetaDescription.

Questions : 97 :: Define caching.

Caching is the technique of storing frequently used items in memory so that they can be accessed more quickly. Caching technique allows to store/cache page output or application data on the client on...View answers

Questions : 98 :: Define cookie.

A cookie is a small file on the client computer that a web application uses to maintain current session information. Cookies are used to identity a user in a future...View answers

Questions : 99 :: What is delegate?

A delegate acts like a strongly type function pointer. Delegates can invoke the methods that they reference without making explicit calls to those methods. It is type safe since it holds reference of...View answers

Questions : 100 :: Explain Exception handling in .Net.

Exceptions or errors are unusual occurrences that happen within the logic of an application. The CLR has provided structured way to deal with exceptions using Try/Catch block. ASP.NET supports some...View answers

Questions : 101 :: What is impersonation?

Impersonation means delegating one user identity to another user. In ASP.NET, the anonymous users impersonate the ASPNET user account by default. You can use <identity> element of web.config...View answers

Questions : 102 :: What is tracing? Where is it used?

Tracing displays the details about how the code was executed. It refers to collecting information about the application while it is running. Tracing information can help you to troubleshoot an...View answers

Questions : 103 :: What is the difference between authentication and authorization?

Authentication verifies the identity of a user and authorization is a process where you can check whether or not the identity has access rights to the system. In other words, you can say that...View answers

Questions : 104 :: How can you register a custom server control to a Web page?

You can register a custom server control to a Web page using the @Register directive.

Questions : 105 :: Which ASP.NET objects encapsulate the state of the client and the browser?

The Session object encapsulates the state of the client and browser.

Questions : 106 :: Differentiate globalization and localization.

The globalization is a technique to identify the specific part of a Web application that is different for different languages and make separate that portion from the core of the Web application. The...View answers

Questions : 107 :: What is ViewState?

The ViewState is a feature used by ASP.NET Web page to store the value of a page and its controls just before posting the page. Once the page is posted, the first task by the page processing is to...View answers

Questions : 108 :: What is managed code in .Net?

The code that runs under the guidance of common language runtime (CLR) is called managed code. The versioning and registration problem which are formally handled by the windows programming are solved...View answers

Questions : 109 :: What are Merge modules?

Merge modules are the deployment projects for the shared components. If the components are already installed, the modules merge the changes rather than unnecessarily overwrite them. When the...View answers

Questions : 110 :: What is Satellite assembly?

Satellite assembly is a kind of assembly that includes localized resources for an application. Each satellite assembly contains the resources for one...View answers

Questions : 111 :: Define secured sockets layer.

Secured Socket Layer (SSL) ensures a secured web application by encrypting the data sent over internet. When an application is using SSL facility, the server generates an encryption key for the...View answers

Questions : 112 :: Define session in ASP.NET.

A session starts when the browser first request a resources from within the application. The session gets terminated when either browser closed down or session time out has been attained. The default...View answers

Questions : 113 :: Which method is used to force all the validation controls to run?

The Page.Validate() method is used to force all the validation controls to run and to perform validation.

Questions : 114 :: Which method has been introduced in ASP.NET 4.0 to redirect a page permanently?

The RedirectPermanent() method added in ASP.NET 4.0 to redirect a page permanently. The following code snippet is an example of the RedirectPermanent() method:...View answers

Questions : 115 :: How can you send an email message from an ASP.NET Web page?

You can use the System.Net.Mail.MailMessage and the System.Net.Mail.SmtpMail classes to send an email in your Web pages. In order to send an email through your mail server, you need to create an...View answers

Questions : 116 :: What is the difference between the Response.Write() and Response.Output.Write() methods?

The Response.Write() method allows you to write the normal output; whereas, the Response.Output.Write() method allows you to write the formatted...View answers

Questions : 117 :: Define Tracing.

Tracing is the way to maintain events in an application. It is useful while the application is in debugging or in the testing phase. The trace class in the code is used to diagnose problem. You can...View answers

Questions : 118 :: What is application domain?

It is the process space within which ASP.NET application runs. Every application has its own process space which isolates it from other application. If one of the application domains throws error it...View answers

Questions : 119 :: List down the sequence of methods called during the page load.

Init() - Initializes the page. Load() - Loads the page in the server memory. PreRender() - the brief moment before the page is displayed to the user as HTML Unload() - runs just after page finishes...View answers

Questions : 120 :: What is the importance of Global.asax in ASP.NET?

The Global.asax is used to implement application and session level events.

Questions : 121 :: Define MSIL.

MSIL is the Microsoft Intermediate Language. All .Net languages' executable exists as MSIL which gets converted into machine specific language using JIT compiler just before...View answers

Questions : 122 :: Response.Redirect vs Server.Transfer

Server.Transfer is only applicable for aspx files. It transfers page processing to another page without making round-trip back to the client's browser. Since no round trips, it offers faster...View answers

Questions : 123 :: Explain Session state management options in ASP.NET

ASP.NET provides In-Process and Out-of-Process state management. In-Process stores the session in memory on the web server. Out-of-Process Session state management stores data in an external data...View answers

Questions : 124 :: How to turn off cookies for a page?

Cookie.Discard Property when true, instructs the client application not to save the Cookie on the user's hard disk when a session...View answers

Questions : 125 :: How can you ensure a permanent cookie?

Setting Expires property to MinValue and restrict cookie to get expired.

Questions : 126 :: How does a content page differ from a master page?

A content page does not have complete HTML source code; whereas a master page has complete HTML source code inside its source file.

Questions : 127 :: Suppose you want an ASP.NET function (client side) executed on the MouseOver event of a button. Where do you add an event handler?

The event handler is added to the Add() method of the Attributes property.

Questions : 128 :: What is the default timeout for a Cookie?

The default time duration for a Cookie is 30 minutes.

Questions : 129 :: What are HTTP handlers in ASP.NET?

HTTP handlers, as the name suggests, are used to handle user requests for Web application resources. They are the backbone of the request-response model of Web applications. There is a specific event...View answers

Questions : 130 :: What are the events that happen when a client requests an ASP.NET page from IIS server?

The following events happen when a client requests an ASP.NET page from the IIS server: User requests for an application resource. The integrated request-processing pipeline receives the first...View answers

Questions : 131 :: Explain file-based dependency and key-based dependency.

In file-based dependency, you have to depend on a file that is saved in a disk. In key-based dependency, you have to depend on another cached item.

Questions : 132 :: AutoPostBack automatically posts the page back to the server when state of the control is changed.

Login controls encapsulate all the features offered by Forms authentication. Login controls internally use FormsAuthentication class to implement security by prompting for user credentials validating...View answers

Questions : 133 :: What is the use of Web.config file?

Following are the setting you can incorporate in web.config file. Database connections Error Page setting Session States Error Handling Security Trace setting Culture specific...View answers

Questions : 134 :: Explain in what order a destructors is called.

Destructors are called in reverse order of constructors. Destructor of most derived class is called followed by its parent's destructor and so on till the topmost class in the...View answers

Questions : 135 :: What is break mode? What are the options to step through code?

Break mode lets you to observe code line to line in order to locate error. VS.NET provides following option to step through code. Step Into Step Over Step Out Run To Cursor Set Next...View answers

Questions : 136 :: Explain how to retrieve property settings from XML .config file.

Create an instance of AppSettingsReader class, use GetValue method by passing the name of the property and the type expected. Assign the result to the appropriate...View answers

Questions : 137 :: Explain Global Assembly Cache.

Global Assembly Cache is the place holder for shared assembly. If an assembly is installed to the Global Assembly Cache, the assembly can be accessed by multiple applications. In order to install an...View answers

Questions : 138 :: Explain Managed code an Un-managed code.

Managed code runs under the safe supervision of common language runtime. Managed code carries metadata that is used by common language runtime to offer service like memory management, code access...View answers

Questions : 139 :: What is side-by-side execution?

This means multiple version of same assembly to run on the same computer. This feature enables to deploy multiple versions of the...View answers

Questions : 140 :: Define Resource Files.

Resource files contains non-executable data like strings, images etc that are used by an application and deployed along with it. You can changes these data without recompiling the whole...View answers

Questions : 141 :: Define Globalization and Localization.

Globalization is the process of creating multilingual application by defining culture specific features like currency, date and time format, calendar and other issues. Localization is the process of...View answers

Questions : 142 :: What is reflection?

Reflection is a mechanism through which types defined in the metadata of each module can be accessed. The System.Reflection namespaces contains classes that can be used to define the types for an...View answers

Questions : 143 :: Define Satellite Assemblies.

Satellite Assemblies are the special kinds of assemblies that exist as DLL and contain culturespecific resources in a binary format. They store compiled localized application resources. They can be...View answers

Questions : 144 :: What is CAS?

CAS is very important part of .Net security system which verifies if particular piece of code is allowed to run. It also determines if piece of code have access rights to run particular resource....View answers

Questions : 145 :: Explain Automatic Memory Management in .NET.

Automatic memory management in .Net is through garbage collector which is incredibly efficient in releasing resources when no longer in...View answers

Questions : 146 :: What is the difference between login controls and Forms authentication?

Latest answer: Forms authentication can be easily implemented using login controls without writing any code. Login control performs functions like prompting for user credentials, validating them and...View answers

Questions : 147 :: How can you implement the postback property of an ASP.NET control?

You need to set the AutoPostBack property to True to implement the PostBack property of controls.

Questions : 148 :: Explain how Cookies work. Give an example of Cookie abuse.

The server tells the browser to put some files in a cookie, and the client then sends all the cookies for the domain in each request. An example of cookie abuse is large cookies affecting the network...View answers

Questions : 149 :: Explain login controls.

Login controls are built-in controls in ASP.Net for providing a login solution to ASP.NET application. The login controls use the membership system to authenticate a user credentials for a Web site....View answers

Questions : 150 :: What is the use of PlaceHolder control? Can we see it at runtime?

The PlaceHolder control acts as a container for those controls that are dynamically generated at runtime. We cannot see it at runtime because it does not produce any visible output. It used only as a...View answers

Questions : 151 :: What setting must be added in the configuration file to deny a particular user from accessing the secured resources?

To deny a particular user form accessing the secured resources, the web.config file must contain the following code: <authorization > <deny users="username" />...View answers

Questions : 152 :: What are the event handlers that can be included in the Global.asax file?

The Global.asax file contains some of the following important event...View answers

Questions : 153 :: What is the difference between page-level caching and fragment caching?

In the page-level caching, an entire Web page is cached; whereas, in the fragment caching, a part of the Web page, such as a user control added to the Web page, is cached.

Questions : 154 :: What is a ViewState?

If a site happens to not maintain a ViewState, then if a user has entered some information in a large form with many input fields and the page is refreshes, then the values filled up in the form...View answers

Questions : 155 :: What is the concept of Postback in ASP.NET?

A postback is a request sent from a client to server from the same page user is already working with. ASP.NET was introduced with a mechanism to post an HTTP POST request back to the same page....View answers

Questions : 156 :: Please briefly explain ASP.NET Page life Cycle?

ASP.NET page passes through a series of steps during its life cycle. Following is the high-level explanation of life cycle stages/steps. Initialization: Controls raise their Init event in this...View answers

Questions : 157 :: What is the concept of view state in ASP.NET?

As in earlier question, we understood the concept of postback. So, in order to maintain the state between postbacks, ASP.NET provides a mechanism called view state. Hidden form fields are used to...View answers

Questions : 158 :: Difference between Response.Redirect and Server.Transfer?

In case of Response.Redirect, a new request is generated from client-side for redirected page. It's a kind of additional round trip. As new request is generated from client, so the new URL is...View answers

Questions : 159 :: Please briefly explain the usage of Global.asax?

Global.asax is basically ASP.NET Application file. It’s a place to write code for Application-level events such as Application start, Application end, Session start and end, Application error...View answers

Questions : 160 :: What are the different types of Validation controls in ASP.NET?

In order to validate user input, ASP.NET provides validation server controls. All validation controls inherits from BaseValidator class which contains the common validation properties and methods...View answers

Questions : 161 :: What are the types of Authentication in ASP.NET?

There are three types of authentication available in ASP.NET: Windows Authentication: This authentication method uses built-in windows security features to authenticate user. Forms...View answers

Questions : 162 :: What are Session state modes in ASP.NET?

ASP.NET supports different session state storage options: In-Process is the default approach. It stores session state locally on same web server memory where the application is...View answers

Questions : 163 :: What is the significance of Finalize method in .NET?

.NET Garbage collector does almost all clean up activity for your objects. But unmanaged resources (ex: - Windows API created objects, File, Database connection objects, COM objects etc) is outside...View answers

Questions : 164 :: Why is it preferred to not use finalize for clean up?

Problem with finalize is that garbage collection has to make two rounds in order to remove objects which have finalize methods. Below figure will make things clear regarding the two rounds of...View answers

Questions : 165 :: What is the use of DISPOSE method?

Dispose method belongs to ‘IDisposable’ interface. We had seen in the previous section how bad it can be to override the finalize method for writing the cleaning of unmanaged resources....View answers

Questions : 166 :: How do I force the Dispose method to be called automatically, as clients can forget to call Dispose method?

Call the Dispose method in Finalize method and in Dispose method suppress the finalize method using GC.SuppressFinalize. Below is the sample code of the pattern. This is the best way we do clean...View answers

Questions : 167 :: What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.

In a interface class, all methods are abstract without implementation where as in an abstract class some methods we can define concrete. In interface, no accessibility modifiers are allowed. An...View answers

Questions : 168 :: How does output caching work in ASP.NET?

Output caching is a powerful technique that increases request/response throughput by caching the content generated from dynamic pages. Output caching is enabled by default, but output from any given...View answers

Questions : 169 :: What is connection pooling and how do you make your application use it?

Opening database connection is a time consuming operation. Connection pooling increases the performance of the applications by reusing the active database connections instead of create new connection...View answers

Questions : 170 :: What are different methods of session maintenance in ASP.NET?

3 types: In-process storage. Session State Service. Microsoft SQL Server. In-Process Storage The default location for session state storage is in the ASP.NET process itself. Session State Service...View answers
More Question

Ask your interview questions on Asp

Write Your comment or Questions if you want the answers on Asp from Asp Experts
Name* :
Email Id* :
Mob no* :
Comment* :

--------- Tutorials ---