Buy Questpond's video subscriptions on
huge discount
.
Online: 12215
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 8
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 ...
Which should be used to redirect on next page in the same server?
NOTE: This is objective type question, Please click question title for correct answer.
Response.Redirect() can be used to redirect from one page to another page in
NOTE: This is objective type question, Please click question title for correct answer.
Can an ASPX file contain more than one form marked with runat="server"?
No.
What is wrong with this code? Server.transfer("Default.HTML");
It is believed that You can not use Server.Transfer method for .HTML file. It only works for .aspx pages. but that's not true.
This code is correct.
What if Some one types the URL of web.config file in the browser?
ASP.NET configures IIS to prevent direct browser access to web.config files to ensure that their value can not become public. Attempt to access web.config file will cause ASP.NET to return 403: Access forbidden error.
Which method of HTTP Handler gets invoked when request is received?
ProcessRequest() method.
What is the name of class from which web pages are inherited?
NOTE: This is objective type question, Please click question title for correct answer.
try { Response.Write("Try Block:"); return; } catch (Exception ex) { throw; } finally { Response.Write("Finally Block"); } What will be the output for the above code?
NOTE: This is objective type question, Please click question title for correct answer.
How do you create a permanent cookie?
Set expires property to Date.MaxValue (HttpCookie.Expires = Date.MaxValue)
What are the expiration policies for Cached objects?
There are two policies for expiration of Cached objects : -
1.Absolute expiration: Which is a fixed duration for expiration.
The object with an absolute expiration period of say 1minute , will expire completely after 1 min .
2. Sliding expiration:
Now here the objects expiration period varies according to the access of the object.
If the object is frequently accessed its expiration period also goes on resetting.
I.e . If there is sliding expiration of 1 minute and it is before one minute , then its expiration period is reset to 1 minute.
How do you turn off cookies for one page in your site?
Use the Cookie.Discard Property which Gets or sets the discard flag set by the server. When true, this property instructs the client application not to save the Cookie on the user’s hard disk when a session ends.
What's the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?
Code behind is relevant to Visual Studio only. SRC is used when you are using notepad or other text editor tool.
Can we execute any web site without the web.config file?
Yes, application will inherit cofiguration setting from machine.config file.
What is Event Bubbling?(Asp.net)
Server Controls like DataGrid,DataGridView , DataList etc have other controls inside them.
Example an DataGridView can have an TextBox or an button inside it.
These Child Controls can not raize events by themselves,but they pass the event to the parent control (DataGridView), which is passed to the page as “ItemCommand” event.
This process is known as EventBubling
====================================================
Regards Hefin [...]
Default setting for the expires attribute of the document.cookie property?
The duration of the browser session.
Which of the following classes is required to draw an empty circle? (Choose all that apply.) 1. System.Drawing.Graphics 2. System.Drawing.Pen 3. System.Drawing.Brush 4. System.Drawing.Bitmap
1. System.Drawing.Graphics
2. System.Drawing.Pen
Graphics class is required to draw the empty ellipse in the form of a circle,
Pen class is required to set the border properties of the circle to be drawn.
You creat a Web site that stores user's active themes in user profile objects. You need to apply user's preferred themes when they log on to the Web site. What should you do?
NOTE: This is objective type question, Please click question title for correct answer.
You need to identify a type that meets the following criteria : Is always a number and Is not a greater than 65,535. Which type should you choose?
NOTE: This is objective type question, Please click question title for correct answer.
What’s the Difference Between <%# i %> and <%= i %>?
We can use two constructs to access page-level variables in an ASP.NET web template:
data binding syntax
Data binding—the hierarchical mapping of control properties to data container
values—is specified by the <%# … %> tags. Code located within a <%# … %>
code block is only executed when the DataBindmethod of its parent control
container is invoked.
code rendering syntax
The <%= … %> code tags output content to the browser. This content could
be hard-coded, or it may contain page-level variables.
Can we set priority (High, Medium, Low) of the mail sent via ASP.NET?
Yes.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
...
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