Buy Questpond's video subscriptions on
huge discount
.
Online: 7406
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 16
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 ...
What is the transport protocol you use to call a Web service?
SOAP (Simple Object Access Protocol)
Name two properties common in every validation control?
ControlToValidate property and Text property.
What is the lifespan for items stored in viewstate
Item stored in ViewState exist for the life of the current
page. This includes postbacks (to the same page).
Where do you store the information about the user locale
System.Web.UI.Page.Culture
What method must be overridden in a custom control ?
The Render() method
How to start NotePad file in AsP.NET with code ?
System.Diagnostics.Process.Start("Notepad.exe");
With wchich function you can get integer value for the specified part of the specified date ?
NOTE: This is objective type question, Please click question title for correct answer.
A textbox generally gets named as "ctl00$Body$txtClientName". Can you control naming of the same?
With the latest release of VS 2010, the answer gets changed to “Yes” from “No”.
Runtime naming of the controls were generally handled by complex algorithms running behind with the application. But it was overhead with length of the control names.
With the VS 2010, now user can define pattern of the control naming.
This function returns character string representing the specified datepart of the specified date.
NOTE: This is objective type question, Please click question title for correct answer.
Is “var i = (i = “test”);” possible ?
No. It is not possible. Variabled declared with “Var” can not be used in its initialization statement as you can do with explicit data. (int i=(i=”test”);
Which one is faster – DirectCast or CTYpe.
DirectCast.
CType uses the Visual Basic run-time helper routines for conversion which makes it slower then DirectCast.
Thumbrule for DirectCast
One type must inherit from or implement the other type
DirectCast generates a compiler error if it detects that no inheritance or implementation relationship exists
What will it result… CInt(1.8) CInt(-1.8) CInt(-1.2)
NOTE: This is objective type question, Please click question title for correct answer.
How to Invoke the Server Code on the Click of Checkbox in a DataGrid column.
As there is no CommandName property of Checkbox so when in Datagrid or any databound control give the AutoPostBack to True and bind to its event "OnCheckedChanged" and define it in the Server Code, it will work.
How to print out all the variables in the Session?
Yes, Using "Session.Keys" we can get all session variables
In VB.NET
Dim strSesVar as string
For Each strSesVar In Session.Keys
Response.Write(strSesVar + " : " + Session(strSesVar).ToString() + "<br>")
Next
In C#
foreach (string strSesVar in Session.Keys)
{
Response.Write(strSesVar + " : " + Session[strSesVar].ToString() + "<br>");
}
All session content can be Removed ?
Yes, All session content can be Removed using following codes :
Session.Contents.RemoveAll()
it Removes all items from current Session.
Is there any difference between UCase and toUpper?
With concern of the functionality both of these works same. The most evaluated parameter has been performance - even with that it is minor of 5-7%. So unless, you have millions iterations to be performed with strings, you don't have to get worried about the performance of them.
String functions are faster.
The same is true with toLower and LCase.
Is it possible to delete application’s all setting?
Yes, it is possible with DeleteSetting function.
The function can take 3 arguments of application name, section name and key name.
If all of these are present then it deletes the specified key. But in case if you have specified only first argument of application name, it deletes all settings.
DeleteSettings(“testApp”) ‘ Deletes all setting of testapp
Is it possible to delete application level settings if you have not logged in to application?
If you are using DeleteSetting function to accomplish the requirement then it is not possible. As DeleteSetting function requires to access the HKEY_LOCAL_USER registry key, which is not active until a user logs on interactively.
What are the common security threats for any asp.net application?
Common threats are:
1. Cross side scripting
2. SQL Injection
3. Storing Password in simple format.
4. No validation for user input.
1
...
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
...
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