Buy Questpond's video subscriptions on
huge discount
.
Online: 1832
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
> ASP.NET
ASP.NET Interview Questions and Answers (1544) - Page 33
Latest and authentic Interview questions. You can also
post an interview question
and
win monthly prizes
as well as gain community
credit points
.
1544 records found.
Post
|
Interview Experiences
|
Interview FAQs
|
Online Interviews
|
Exclusive Questions
Get 650+ Questpond's Interview videos on discount
Loading ...
How can you keep a track of all the unhandled exceptions of your web application in the system event log?
Write the code in Application_Error() event handler in the Global.asax file.
Application_Error is fired for all the web pages and can be useful for taking custom actions in response to the unhandled exceptions.
Difference between ViewState and ControlState:
ViewState and ControlState are both mechanisms used in ASP.NET for maintaining data across postbacks. Both are preserved in a hidden field known as _VIEWSTATE.
The differences are:
1)ViewState can be disabled while the Control State cannot be disabled.
2)ViewState is implemented by using EnableViewState property of a control to true.
Control State works even when EnableViewState is off.
To use Control State (for example in a custom control) we have to override OnInit method,call RegisterRequiresControlState method in OnInit method and then override the SaveControlState and LoadControlState methods.
Custom Controls code is written in classes derived from WebControl.
3)Control State is used for small data only.
eg: maintain clicked page number in a GridView even when EnableViewState is off
Why we use error pages in asp.net?
Error Pages are used to perform customized actions in case of errors like
403: Forbidden
500: Internal Server Error
In customized actions, we can open specific pages instead of error messages for 403, 500 error codes etc.
This section is written in Web.Config file
<customErrors mode="On">
<error statusCode="400" redirect="error.aspx"/>
</customErrors>
So when error 400 occurs , instead of the error message, error.aspx page of the website should open.
Which of these is not the value provided in Type property of Validation Controls?
NOTE: This is objective type question, Please click question title for correct answer.
Which of these Controls does not have the Display property?
NOTE: This is objective type question, Please click question title for correct answer.
How can you remove the default arrows that appear in the ASP.NET Menu Control?
Set the StaticEnableDefaultPopOutImage property to False. This property is responsible for the default arrows that appear in the ASP.NET Menu control.
Which of these controls can be validated using RequiredFieldValidator?
NOTE: This is objective type question, Please click question title for correct answer.
which namespace defines the classes for Application,Request,Response,Cache objects
NOTE: This is objective type question, Please click question title for correct answer.
You create users using the Web Site Administration Tool or the CreateUserWizard control. No external database is being used. In which database ,all the user details will be stored?
In the aspnetdb database, all the details will be stored.It is stored under the
App_Data folder.It stores the user details in aspnet_membership and the aspnet_users
tables.
aspnetdb.mdf file will be there in the App_Data folder. You can click this file and see
the data in the above mentioned tables.
How to protect the view state from tampering
We can protect the view state from tampering by encrypting the contents of the view state as well as we need to make the
enableviewstatemac = true
in the page level which will do the complete encryption
What is URL Routing in ASP.NET MVC?
Routing validates variables used in the URL definition according to a pattern mentioned in it, and also automatically passes them as parameter arguments to a controller action after validation.
What is TDD environment?
ASP.NET MVC framework helps to do test driven development (TDD) environment. With the help of this you can implement automated unit tests, and it will help to define and verify the requirements of new code before you actually write the code itself.
Which of these data source control does not have the Caching feature?
NOTE: This is objective type question, Please click question title for correct answer.
In which Login Control, you can provide a link to a Web Form(example: register.aspx)
Login is the Control. We can specify the link using the CreateUserUrl property and the
text of the link is specified in the CreateUserText propperty.
What is the difference between the Take and Skip clauses?
The
Take
clause returns a specified number of elements. For example, you can use the
Take
clause to return two values from an array of numbers.
The
Skip
clause skips the specified number of elements in the query and returns the rest. For example, you can use the
Skip
clause to skip the first four things in an array of strings and returns the remaining array of string.
What is the difference between the Select clause and SelectMany() method in LINQ?
The
Select
clause and
SelectMany()
method both are used to produce a result value from a source of values. The difference lies in the result set. The
Select
clause is used to produce one result value for every source value. The result value is a collection that has the same number of elements from the query. In contrast, the
SelectMany()
method produces a single result that contains a concatenated collection from the query.
What is determined by the Culture and UICulture values?
The
Culture
value determines the functions, such as
Date
and
Currency
, which are used to format data and numbers in a web page. The
UICulture
value determines the resources, such as strings or images, which are loaded for a web page in a web application.
What is aggregate dependency?
This dependency allows multiple dependencies to be aggregated for content that depend on more than one resource. In this type of dependency, the removal of the data item from the cache depends on sum of all the defined dependencies.
Which of these event handlers is fired whenever the request is sent for the web page from the browser?
NOTE: This is objective type question, Please click question title for correct answer.
Difference between Server.Transfer and Response.Redirect
Here i provide the difference between Server.Transfer() and Response.Dedirect().
Server.Transfer() :
1.Server side page navigation no change in url.
2.Rountrip doesnot occurs.
3.Data can be persist across the pages using Context.Item collection
4.Can transfer data from one page to another keeping the page state alive.
Response.Dedirect() :
1.client side page navigation through browser change in url.
2.Roundtrip occurs.
3.client know the physical loation (page name and query string as well). 4.Context.Items loses the persisitance when nevigate to destination page.
So Use server.transfer to navigate within website. And use Response.redirect to redirect to another website.
1
...
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
...
78
More ASP.NET Exclusive Interview Questions & Answers here
Found this useful, bookmark this page to the blog or social networking websites.
Bookmark It
Interview Questions and Answers Categories
.NET Certifications
.NET Core
.NET Framework
ADO.NET
AI ML
Android
Angular
AngularJS 1x
Aptitute Test
ASP.NET
ASP.NET AJAX
ASP.NET Core
ASP.NET MVC
ASP.NET Web API
Aurelia
Azure
Best Practices
BizTalk Server
Bootstrap
C#
Cloud
CMS
CSS 3
Data Structures & Algorithms
Design Pattern & Practices
DotNetFunda.Com
Entity Framework
Error and Solution
F#
Function Points (FPA)
HR
HTML 5
IIS
Interview Questions
JavaScript
jQuery
Kinect
LightSwitch
LINQ
Management
Mobile Development
MSBI (SSIS, SSRS, SSAS)
Mule
Networking
News and Community
Node.js
NoSql
OOPS
Oracle
Others
PostgreSQL
PowerShell
Product Reviews
Project Management
Python
QA (Testing)
R Language
Regular Expressions
SEO
SharePoint
SignalR
Silverlight
Sql Server
TypeScript
UML
VB.NET
Visual Studio
WCF
Web Analytics
Web Services, Remoting
Windows 8
Windows Forms
Windows Metro
Windows Phone
WPF
WWF
XML