Asp.Net Interview Questions and Answers for Freshers - 1

Question: 1

What are some ways to manage state in an ASP.NET application?

Session objects,

Application objects,

View State,

Cookies,

Hidden form fields.

Question: 2

What is smart navigation?

The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.

Question: 3

What namespaces are imported by default in ASMX files?

The following namespaces are imported by default. Other namespaces must be imported manually.

System

System.Collections

System.component Model

System.Data

System.Diagnostics

System.Web

System.Web.Services

Question: 4

What is the transport protocol you use to call a web service?

SOAP (Simple Object Access Protocol) is the preferred protocol.

Question: 5

Can an ASP.NET app figure out at run-time what version of ASP.NET it’s hosted by?

Yes, by reading the static Version property of the Framework’s System.Environment class.

Related Questions