YouTube Icon

Interview Questions.

ASP.Net Interview Questions and Answers - Mar 04, 2023

fluid

ASP.Net Interview Questions and Answers

If you are trying to get an internet-developer process, then you definately should additionally have the know-how of ASP.Net besides other net-improvement equipment. Here in the submit a few crucial ASP.Net interview questions and answers are given for education of interview.

1) What is ASP?

ASP stands for Active Server Pages. It is a server-side generation of Microsoft Company used to increase dynamic web pages and also use one of a kind scripting languages like VBScript for growing internet pages.

2) What is ASP.Net?

First model of ASP.Net was launched in the year 2002 by way of Microsoft in direct reaction to the problems that builders being confronted in conventional ASP. Since at that time ASP is in such extensive use, consequently, Microsoft ensured that ASP scripts execute with out modification on a gadget with the .NET Framework. Now, it's far part of .Net Framework. ASP.Net packages may be created in maximum of .Net well suited languages like Visual Basic, C# and J# and so forth.

Three) Name the determine magnificence of the web server manipulate?

The determine elegance of all internet server controls is System.Web.UI.Control.

Four) What are sorts of caching in ASP.Net?

In ASP.Net has following types of caching.

Output caching

Fragment caching

Data caching

five) What is move-page posting?

By default, ASP.Net submits shape to the same web page at the same time as in case of move-web page posting, the shape is submitted to distinctive pages. It is carried out with the help of PostBackUrl assets of the button.

6) What are HTML server controls?

HTML server controls are better form of HTML popular controls. The HTML controls aren't processed via the server To make use of it, these are specifically converted into server manipulate with the assist of attribute runat=”server”.

For example, the subsequent is wellknown HTML manage.

<input type="text" color="green">

After adding an characteristic to convert it to a server manipulate, it is going to be as below.

<input type="text" id="textid" color="green" runat="server">

7) What are the names of events in web page-life-cycle?

Page_PreInit

Page_Init

Page_InitComplete

Page_PreLoad

Page_Load

Page_LoadComplete

Page_PreRender

8) What is the reason of Http Protocol?

HTTP Protocol is used to name net provider.

Nine) What are ASP.Net security controls?

Following are ASP.Net protection controls. All of them serve special purpose.

<asp:Login>: It lets in the users to enter their credentials

<asp:LoginName>: Used to show the call of the logged-in user

<asp:LoginStatus>: Shows as to whether person is authenticated or not

<asp:LoginView>: It provides various login views depending on the chosen template

<asp:PasswordRecovery>:  E-mail users the misplaced password

10) Why code-in the back of feature is utilized in ASP.Net?

Code in the back of function is used to make the code easy to recognize by using setting apart utility logic from HTML tags. It additionally gets rid of the browser incompatibility by provision of code documents on net servers and guide net pages to be compiled on demand.

Eleven) What are most important built-in gadgets in ASP.Net?

Following are some integrated objects in ASP.Net

Server

Session

Application

Request

Response

Context

Trace

12) What is virtual folder?

It carries web programs and has been posted as virtual folder via IIS

thirteen) What are methods of navigation in ASP.Net.

Following are methods for navigation in ASP.Net.

Hyperlink manage

Server.Transfer

Server.Execute

Response.Redirect

Window.Open script

14) What is AdRotator manipulate in ASP.Net?

The AdRotator control is used for the purpose of advertisements to web pages. It randomly presentations classified ads one by one whilst the net web page is refreshed. This control is related to hyperlinks as you click on on the commercial, it redirects to different pages.

15) What is net.Config?

Configuration files of ASP.Net are XML files for utility stage settings. These are saved in the call of web.Config. These are to be had in a couple of directories of net software server. ASP.Net makes use of the internet.Config documents to compute series of settings for each URL goal request, at run time. These settings pc once and cached throughout further requests.

16) What is GAC?

GAC is Global Assembly Cache used to proportion .Net assemblies in case more than one utility need to apply identical meeting.

17) What is CompareValidator control?

The CompareValidator manipulate can compare the values of two controls.

18) Which property is used to get right of entry to user’s locale records?

The System.Web.UI.Page.Culture belongings is used to get right of entry to facts concerning a user’s locale.

19) What is RequiredFieldValidator in ASP.Net?

RequiredFieldValidator whilst used, it makes the associated enter manipulate as required field.

20) What is RegularExpressionValidator?

It is another useful validator that's used to test the validity of all styles of strings entered in input area.

21) What is globalization and localization?

The globalization is a method used to perceive the precise part of a web utility, one-of-a-kind for diverse languages and make that part cut loose the middle of net software while localization is a way to configure net utility to make it supportive for a specific language or locale.

22) What is @Register directive in ASP.Net?

Register directive is used to check in a custom server manipulate to an internet page.

23) What are Response.Write() and Response.Output.Write()?

The Response.Write() technique allows you to put in writing the everyday output whilst the Response.Output.Write() technique permits to write down the formatted output.

24) What is IIS?

IIS stands for Internet Information Services. Microsoft has developed IIS to provide Internet-primarily based services to ASP.Net web packages.

25) Which technique is used to sign-out from forms authentication?

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

26) What is multilingual internet site?

A multilingual internet site contains content material in many languages. It contains date, time and different sources in diverse languages.

27) Why ViewStateMode belongings is utilized in ASP.Net?

The ViewStateMode turned into created for the Control elegance. It is used to allow the view country to an man or woman manage despite the fact that view nation ASP.Net page is disabled.

28) What is the characteristic of ValidationSummary manipulate?

It is used to show all validation messages in a single control.

29) What is the difference between authorization and authentication?

Authorization is a mechanism to supply get entry to to an authenticated person of precise assets. Authentication verifies the identity of person. It is mechanism to get a few credentials from users and affirm user’s identification. The authentication takes before authorization.

30) What are cookies in ASP.Net?

Cookies are small and executable software and shop the identification of user on its go to of website and validate its authenticity on subsequent go to. These small files can be accessed via the web server or the consumer computer. These lets in the server to supply a page tailor-made to a selected consumer, or the web page itself can incorporate some script that is privy to the statistics within the cookie.

31) What is country management?

State management is used to trace statistics or records that have an effect on the kingdom of applications. In .Net framework, state can be maintained by using the following mechanism

Client primarily based country management makes use of the subsequent techniques for implementation

View State

Hidden Fields

Cookies

Query Strings

Control State

Server-based totally state management uses following techniques for implementation

Session State

Profile Properties

Application kingdom




CFG