Home
|
Tutorial
|
Articles
|
Forum
|
Interview Question
|
Code Snippets
|
News
|
Fun Zone
|
Poll
|
Web Links
|
Certification
|
Search
Welcome :
Guest
Sign In
Register
Win Surprise Gifts!!!
Congratulations!!!
Top 5 Contributors of the Month
satyapriyanayak
Narayanan
Karthikeyan Anbarasan
Amit Mehra
Jean Paul
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Post New Question
Subscribe to Interview Questions
Quick Links For Interview Questions Categories:
ASP.Net
Windows Application
.NET Framework
C#
VB.Net
ADO.Net
Sql Server
SharePoint
Silverlight
OOPs
JQuery
JavaScript/VBScript
Biztalk
Patten/Practices
.IIS
WCF
WPF
WWF
Networking
Aptitude
Others
All
Interview Questions And Answers
Differences between application and session.
Author:
Shashi Ray
Posted Date: November 27, 2008 Category:
ASP.Net
Points: 10
The session object maintains state on a per client basis whereas the application object is on a per application basis and is consistent across all client requests.
Describe the techniques for optimising your application?
Author:
Shashi Ray
Posted Date: November 27, 2008 Category:
ASP.Net
Points: 10
. Avoid round-trips to server. Perform validation on client.
. Save viewstate only when necessary.
. Employ caching.
. Leave buffering on unless there is a dire need to disable it.
. Use connection pooling.
. Use stored procedures instead of in-line SQL or dynamic SQL.
What are the types of threading models?
Author:
Shashi Ray
Posted Date: November 26, 2008 Category:
ASP.Net
Points: 10
. Single Threading: This is the simplest and most common threading
model where a single thread corresponds to your entire application's
process.
Apartment Threading (STA): This allows multiple threads to exist in a
single application. In single threading apartment (STA), each thread
is isolated in it's own apartment. The process may contain multiple
threads (apartments) however when an object is created in a
thread (i.e. apartment) it stays within that
apartment. If any communication needs to occur between different
threads (i.e. different apartments) then we must marshal the first
thread object to the second thread.
Free Threading: The most complex threading model. Unlike STA,
threads are not confined to their own apartments. Multiple treads can
make calls to the same methods and same components at the
same time.
Explain the life cycle of an ASP .NET page.
Author:
Shashi Ray
Posted Date: November 26, 2008 Category:
ASP.Net
Points: 10
Life cycle of ASP.Net Web Form
Page Request >> Start >> Page Init >> Page Load >> Validation >>
PostBack Event Handling >> Page Rendering >> Page Unload
Page Request - When the page is requested ASP.Net determines
whether the page is to be parsed and compiled or a cached verion
of the page is to be sent without running the page.
Start - Page propertied REQUEST and RESPONSE are SET, if the
page is pastback request then the IsPostBack property is SET and
in addition to this UICulture property is also SET.
Page Initilization - In this the UniqueID of each property is SET.
If the request was postback the data is not yet loaded from the
viewstate.
Page Load - If it was a postback request then the data gets loaded
in the control from the ViewState and control property are set.
Validation - If any control validation present, they are performed
and IsValid property is SET for each control.
PostBack Event Handling - If it was a postback request then any
event handlers are called.
Page Rendering - Before this the viewstate is saved from the page
and RENDER method of each page is called.
Page Unload - Page is fully rendered and sent to the client(Browser)
and is discarded. Page property RESPONSE and REQUEST are unloaded.
what are value types and reference types?
Author:
Shashi Ray
Posted Date: November 26, 2008 Category:
ASP.Net
Points: 10
Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short, strut, uint, ulong, ushort
Value types are stored in the Stack
Reference type - class, delegate, interface, object, string
Reference types are stored in the Heap
Describe ways of cleaning up objects.
Author:
Shashi Ray
Posted Date: November 26, 2008 Category:
ASP.Net
Points: 10
The run time will maintain a service called as garbage collector.
this service will take care of deallocating memory corresponding to
objects.it works as a thread with least priority.when application
demenads for memory the runtime will take care of setting the high
priority for the garbage collector,so that it will be called for execution
and memory will be released.the programmer can make a call
to garbage colector by using GC class in system name space.
Difference between imperative and interrogative code.
Author:
Shashi Ray
Posted Date: November 26, 2008 Category:
ASP.Net
Points: 10
There are imperative and interrogative functions and I think they are talking about that. Imperative functions are the one which return a
value while the interrogative functions do not return a value.
Explain manifest & metadata.
Author:
Shashi Ray
Posted Date: November 26, 2008 Category:
ASP.Net
Points: 10
Manifest is metadata about assemblies. Metadata is machine-readable information about a resource, or ""data about data." In .NET, metadata includes type definitions, version information, external assembly references, and other standardized information.
Difference between a sub and a function.
Author:
Shashi Ray
Posted Date: November 26, 2008 Category:
ASP.Net
Points: 10
A Sub Procedure is a method will not return a value
-A sub procedure will be defined with a "Sub" keyword
Sub ShowName(ByVal myName As String)
Console.WriteLine("My name is: " & myName)
End Sub
-A function is a method that will return value(s).
-A function will be defined with a "Function" keyword
Function FindSum(ByVal num1 As Integer, ByVal num2 As Integer) As Integer
Dim sum As Integer = num1 + num2
Return sum
End Function
NET Remoting Versus Web Services?
Author:
Shashi Ray
Posted Date: November 19, 2008 Category:
.NET Framework
Points: 10
With the advent of .NET and the .NET Framework, Microsoft introduced a set of new technologies in the form of Web services and .NET remoting. .NET remoting and ASP.NET Web services are powerful technologies that provide a suitable framework for developing distributed applications. It is important to understand how both technologies work and then choose the one that is right for your application.
The Web services technology enables cross-platform integration by using HTTP, XML and SOAP for communication thereby enabling true business-to-business application integrations across firewalls. Because Web services rely on industry standards to expose application functionality on the Internet, they are independent of programming language, platform and device.
Remoting is .a technology that allows programs and software components to interact across application domains, processes, and machine boundaries. This enables your applications to take advantage of remote resources in a networked environment.
Both Web services and remoting support developing distributed applications and application integration, but you need to consider how they differ before choosing one implementation over the other. In this article, I will show the differences between these two technologies. I will present samples for each type of implementation and identify when to use which technology.
« Previous
1
2
….
385
386
387
388
389
390
391
….
410
411
Next »
Hall of Fame
Twitter
Terms of Service
Privacy Policy
Contact Us
Archives
Tell A Friend