ASP.NET Exclusive Interview Questions and Answers (348) - Page 8

  • A joint initiative from DotNetFunda.Com and Questpond.
  • A one stop place on the internet to get trusted and proven Interview Questions (based on more than a decade of experience in this field) to ensure the success of the candidates.
  • You will find almost all Interview questions from Questpond here and this list is growing day by day with all latest and updated interview questions.

348 records found.

Get 650+ Questpond's Interview videos on discount

What is the importance of AutoEventWireup in asp.net?

AutoEventWireup
is used only for page events and If AutoEventWireup is set to true
then page events are automatically hoocked to their corresponding event
handlers

Can external users view or download the code in global.asax file?

NOTE: This is objective type question, Please click question title for correct answer.
A _____________ represents a web application and it points to a physical folder in your computer.

NOTE: This is objective type question, Please click question title for correct answer.
You invoke the ____________ method immediately after you create an instance of the HttpApplication class

NOTE: This is objective type question, Please click question title for correct answer.
What is the role of Start in Asp.net page Life Cycle?

In this stage, properties such as Request and Response are set. It’s also
determined at this stage whether the request is a new request or old,
and thus it sets the IsPostBack property in the Start stage of the page
life cycle.
What’s a bubbled event?

When you have a complex control, like DataGrid, writing an event processing
routine for each object (cell, button, row, etc.) is quite tedious. The
controls can bubble up their eventhandlers, allowing the main DataGrid
event handler to take care of its constituents.
Is it compulsory to include global.asax file in every web application?

NOTE: This is objective type question, Please click question title for correct answer.
Should user input data validation occur server-side or client-side? Why?

All user input data validation should occur on the server at a minimum.
Additionally, client-side validation can be performed where deemed
appropriate and feasable to provide a richer, more responsive experience
for the user.
What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

Server.Transfer transfers page processing from one page directly to the next 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.
Server.Transfer does not update the clients url history list or current
url. Response.Redirect is used to redirect the user's browser to
another page or site. This performas a 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.
What is the Global.asax used for?

The Global.asax (including the Global.asax.cs file) is used to implement application and session level events.
What are the Application_Start and Session_Start subroutines used for?

This is where you can set the specific variables for the Application and Session objects.
Name two properties common in every validation control?

ControlToValidate property and Text property.
What are the best practices to follow to secure connection strings in an ASP.NET web application?

1. Always store connection strings in the site's Web.config file. Web.config is very secure. Users will not be able to access web.config from the browser. 2. Do not store connection strings as plain text. To help keep the connection to your database server secure, it is recommended that you encrypt connection string information in the configuration file. 3. Never store connection strings in an aspx page. 4. Never set connection strings as declarative properties of the SqlDataSource control or other data source controls.
What are the best practices to keep in mind when accepting user input on a web application?

1. Always use validation controls whenever possible to limit user input to acceptable values. 2. Always check the IsValid property of the aspx page. Run the server side code only if the IsValid property value is true. A value of false means that one or more validation controls have failed a validation check. 3. Always perform server side validation irrespective of client side validation being performed or not. This will protect your web application even if the client has by passed the client side validation by disabling javascript in the web browser. 4. Also make sure to re validate user input in the business logic layer of your application.
In ASP, client can see ____________ code.

NOTE: This is objective type question, Please click question title for correct answer.
A data-bound control connects to a data source control through its ___________ property.

NOTE: This is objective type question, Please click question title for correct answer.
Among these, which one is not a list control?

NOTE: This is objective type question, Please click question title for correct answer.

More ASP.NET Interview Questions & Answers here

Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Exclusive Interview Questions and Answers Categories