ASP.NET Refresher Flashcards

1
Q

Select extension of file in asp.net

A

.aspx (.aspx)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Select protocol is used to call a web service

A

HTTP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is MVC? IN ASP.NET CONTEXT?

A

Framework

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Select the event which is NOT in page life cycle.

A

Page_Unload (Page_Unload)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Select the session state management option which is NOT available in ASP.NET.

A

In-Out-Process (In-Out-Process)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In which event of page cycle is the ViewState available?

A

After the Init() and before the Page_Load().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

From which base class all Web Forms are inherited?

A

Page class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the different validators in ASP.NET?

A
Required field Validator
Range Validator
Compare Validator
Custom Validator
Regular expression Validator
Summary Validator
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which validator control you use if you need to make sure the values in two different controls matched?

A

Compare Validator control.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is ViewState?

A

ViewState is used to retain the state of server-side objects between page post backs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In which event of page cycle is the ViewState available?

A

After the Init() and before the Page_Load().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the difference between Server.Transfer and Response.Redirect?

A

In Server.Transfer page processing transfers from one page to the other page without making a round-trip back to the client’s browser. This provides a faster response with a little less overhead on the server. The clients url history list or current url Server does not update in case of Server.Transfer.

Response.Redirect is used to redirect the user’s browser to another page or site. It performs trip back to the client where the client’s browser is redirected to the new page. The user’s browser history list is updated to reflect the new address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Where the viewstate is stored after the page postback?

A

ViewState is stored in a hidden field on the page at client side. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How long the items in ViewState exists?

A

They exist for the life of the current page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the different Session state management options available in ASP.NET?

A

In-Process
Out-of-Process.
In-Process stores the session in memory on the web server.

Out-of-Process Session state management stores data in an external server. The external server may be either a SQL Server or a State Server. All objects stored in session are required to be serializable for Out-of-Process state management.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How you can add an event handler?

A

btnSubmit.Attributes.Add(“onMouseOver”,”JavascriptCode();”)

17
Q

What is caching?

A

Caching is a technique used to increase performance by keeping frequently accessed data or files in memory. The request for a cached file/data will be accessed from cache instead of actual location of that file.

18
Q

What are the different types of caching?

A

ASP.NET has 3 kinds of caching :

Output Caching,
Fragment Caching,
Data Caching.

19
Q

List the events in page life cycle.

A

1) Page_PreInit
2) Page_Init
3) Page_InitComplete
4) Page_PreLoad
5) Page_Load
6) Page_LoadComplete
7) Page_PreRender
8) Render