Que 1. What is ASP.NET?

Ans.  ASP.NET is an open-source server-side web application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, web applications and web services.


 Que 2.  What is AutoPostBack feature in ASP.NET?

Ans.  Autopostback property is a boolean property by default it is false. If we set autopostback property to true of any control then after processing on any control a request (postback) is send to the server.

In other words, AutoPostBack property allows controls which cannot submit the Form (PostBack) on their own hence ASP.Net has provided a feature using which controls like DropDownList, CheckBoxList, etc. can perform PostBack.


Que 3. What is state management?

Ans.  Web is Stateless. it means by default, for each page posted to the server, the state of controls is lost. 
 HTTP is a stateless protocol, it can not holds the client information on page. for example:  if we enter a text and press submit button, text does not appear after post back, only because of page is recreated on its round trip.

So it is a big issue to maintain the state of the page and information for a web application. To overcome this issue ASP.NET 2.0 introduces some features like View State, Cookies, Session, etc. to manage the state of page.
There are two types of state management techniques.

1.       Client Side State Management

  • View State

  • Cookies

  • Hidden Field

  • Control State

2.       Server Side State Management

  • Session

  • Application Object

  • Caching

  • Database


Que 4. Explain the ViewState in ASP.NET?

Ans.  View State is a method to preserve page values and control values between round trips.

it is one of the most important and useful client side state management mechanism to store the user's data at the time of post back of your page.

It stores data in the generated HTML using hidden field not on the server.

Advantages of view state

  • Easy to implement

  • Not any server resources are required

  • Enhanced security features ,like it can be encoded and compressed.

Disadvantages of view state

  • It does not have any support on mobile devices.

  • stores Data in hidden fileds in hashed format which can be easily trapped.

  • if we stores larger amount of data, it can be cause of performance overhead.


Que 5. What are Master Pages?

Ans.  ASP.NET master pages are the pages which allows us to create a consistent layout throughout our application. Master Pages contains content placeholders to hold page specific content.

You can create individual content pages that contains the content, you want to display.

When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content of the content page.


Que 6. What are Themes? What is the difference between Themes and Css files?

Ans.  Themes are the collection of .skin files, .CSS files, and images.

Themes can also include graphics and other resources, such as script files or sound files.

Themes and .css both are not same but are very similar in many ways.

Difference between style sheets and Themes.

There are some main differences between style sheets and themes.

~Themes can include graphics.

~Only one theme can be applied to each page. Where multiple style sheets can be applied to each page.

 

Quick ask your Question