Asp Dot net Interveiew questions and answers, ASP Dotnet interview questions
1. How do you sign out from the forms authentication?
1. How do you sign out from the forms authentication?
Using Method FormsAuthentication.Signout()
2. What is AutoPostBack?
3. What is the function of ViewState property?
The ASP.NET 4.0 introduced a new property called asViewStateMode 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 disabled.
4. Why do you use the App_Code folder in ASP.NET?
The App_Code
folder is automatically present in the project. It stores files,
such as classes, typed data set, text files, and reports. If this folder
is not available in application, you can add this folder. One of
the important features of the App_Code folder is that only one dll is created for the complete folder, irrespective of how many files it contains.
5. Define a multilingual Web site.
A
multilingual Web site serves content in a number of languages. It
contains the multiple copies for its content and other resources, such as
date and time, in different languages.
6. What is ASP.NET Web Form?
ASP.NET
Web forms are designed to use the 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 object model that allows you
to create functional controls, which are executed on the server and are
rendered as HTML on the client. The attribute, runat="server", associated with a server control indicates that the Web form must be processed on server.
7. What is difference between a default skin and a named skin?
The
default skin is applied to all 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 have to set the
Skin ID property to apply it.
8. What is IIS? for what purpose is it used?
Internet
Information Services (IIS) is created by the Microsoft to provide
Internet-based services to ASP.NET Web applications. It makes your
computer to work as a Web server and provides the functionality to
develop and deploy Web applications on the server. IIS handles the
request and response cycle on the Web server. It also offers the
services of SMTP and FrontPage server extensions. The SMTP is used to
send emails and use FrontPage server extensions to get the dynamic
features of IIS, such as form handler.
9. What is Query String? What are its advantages and the limitations?
9. What is Query String? What are its advantages and the limitations?
The Query String helps in sending the page information to the server.
The Query String has the following advantages:
The following are the limitations of Query String are:
The Query String has the following advantages:
- Every browser works with the Query Strings.
- It does not require server resources and so does not exert any kind of burden on the server.
The following are the limitations of Query String are:
- Information must be within the limit because URL does not support many characters.
- Information is clearly visible to user, which leads to security threats.
10. What is actually returned from server to the browser when a browser requests for .aspx file and the file is displayed?
When a browser requests for .aspx file then the server returns a response, which is rendered into a HTML string.
11. How can you display all validation messages in one control?
The ValidationSummary control displays all validation messages in one control.
24. Which two new properties are added in the ASP.NET 4.0 Page class?
The two new properties added in the Page class are MetaKeyword and MetaDescription.
ConversionConversion EmoticonEmoticon