Top 10 ASP.NET Interview Questions and Answers
Free PDF DOWNLOAD FOR Microsoft Dot Net Course Material
1.What is Asp.Net?
Asp.Net Stands for Active Server Pages. It
is a Web Application Framework developed
by Microsoft . Asp.Net provides services to allow the Creation,deployment, and execution of web Applications and Web
Services .Web Applications are built using web forms.
2.What
is a Cookie?Cookie is a lightweight executable program, which the server posts to client machines. Cookies store the identity of a user at the first visit of the Web site and validate them later of the next visits for their authenticity. The values of a cookie can be transferred between the user’s request and the server’s response.
3. What is
Viewstate?
ViewState is a Dot Net mechanism to store the posted data among post backs. ViewState allows the state of objects to be stored in a hidden field on the page, saved on client side and transported back to server whenever required.
4. What is caching?
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.
5. Explain the
concept of Globalization and Localization?
Globalization is used to create a multilingual application by defining culture specific features like text, date etc. Localization is used to accommodate the cultural differences in an application.
6. What
is Post Back?
There will be a roundtrip of the page between client and a server in request-response model, so this mechanism is called Post Back.
7. Explain Session state management options in ASP.NET?
ASP.NET provides In-Process and
Out-of-Process state management. In-Process will store the session in memory on
the web server. Out-of-Process will store data in an external data source such
as SQL Server or a State Server service. Out-of-Process requires that all
objects stored in session are serializable.
8. What is the difference between
ExecuteScalar and ExecuteNonQuery?
ExecuteScalar returns output value where as
ExecuteNonQuery does not return any value but the number of rows affected by
the query. ExecuteScalar used for fetching a single value and ExecuteNonQuery
used to execute Insert and Update statements.
9. What is boxing and unboxing?
Boxing is assigning a value type to reference type variable.
Unboxing
is reverse of boxing ie. Assigning reference type variable to value type
variable.
10. Explain form authentication
using login control?
Login controls encapsulate all the features offered by Forms authentication. Login controls internally use Forms Authentication class to implement security, by prompting for user credentials validating them.
Comments
Post a Comment