ssdf
Is there a way to force garbage collection?
Is there any sample C# code for simple threading?
using System.Threading;
class ThreadTest
{
public void runme()
{
Console.WriteLine("Runme Called");
}
public static void Main(String[] args)
{
ThreadTest b = new ThreadTest();
Thread t = new Thread(new ThreadStart(b.runme));
t.Start();
}
}
what are the differences between Datalist DataGrid and datarepeater ?
DataGrid*Has a grid appearence by default*has a autoformat option*has default paging and sorting*has no separator between elements
DataRepeater
simple,read-only output, has no built in support for selecting or editing items, has no DEFAULT APPEARENCE,has no default paging.
what is the purpose of “base” keyword in c# ?
1) used to access a base class constructor
2) used to access a base class member in the derived class.
what is the difference between ref and out parameters ?
ref –> inout
out –> Out
Argument passed as ref must be initialized before it is passed to the method,where as incase of Out it’s not neccssary.but after a call to the method as an out parameter the variable must be initialized .out parameter can be used when you want to return more than one value from a method.
Describe the difference between inline and code behind - which is best in a loosely coupled solution?
Diffrence between Sever.transfer and respone.redirect
Response.Dedirect() :client know the physical loation (page name and query string as well). Context.Items loses the persisitance when nevigate to destination page
Explain the differences between Server-side and Client-side code?
Client side scripting means that the script will be executed immediately in the browser such as form field validation, clock, email validation, etc. Client side scripting is usually done in VBScript or JavaScript.
VBScript , JavaScript ???
VBScript is the client side scripting (script which is executed in your browser). This script looks like VB and it is only supported by Internet Explorer.JavaScript is also another client side scripting based on Java. This script is supported by Internet Explorer and also Netscape browser
what is difference between .dll & .exe?
ACTIVEX DLL:
An in-process component, or ActiveX DLL, runs in another application’s process.In-process components are used by applications or other in-process components. this allows you to wrap up common functionality (like an ActiveX Exe).
ACTIVEX EXE:
An out-of-process component, or ActiveX EXE, runs in its own address space. The client is usually an application running in another process.The code running in an ActiveX Exe is running in a separate process space. You would usually use this in N-Tier programming. An ActiveX EXE runs out of process while an ActiveX DLL runs in the same process space as VB app. Also, and ActiveX EXE can be run independent of your application if desired.
What is the difference between boxing and unboxing???
Describe garbage collection (in simple terms).
What is the transport protocol you use to call a Web service?
Whats an assembly?
What is the difference between a.Equals(b) and a == b?
a.Equals(b) is used to compare two objects
difference between thread and process?
process - executes single program
What does connection string consist of?
1.Data Source = “./SQLEXPRESS”; serverName\instanceName as Data Source to use a specific SQL Server instance
2.Initial Catalog = “DATABASE_NAME”;
Either3.Uid=”UserID for SQL server” ;4.Password= “Password for SQL server”;ORIntegrated Security=”True”; Use Windows security
5.Provider Name =”System.Data.SqlClient”;
What are the 2 types of polymorphism supports in .NET?
2. Polymorphism via Interfaces
What are interface in .NET?
What are indexes .NET?
What is isPostback property?
What diff b/w overloading and overriding? How can this be .net
Overloading : Derived classes may have different method signature with different parameters.
About a class access specifiers and method access specifiers
ASP.NET OBJECTS?
Explain the life cycle of an ASP .NET page.
1.PreInit, 2.Init, 3.InitComplete, 4.PreLoad, 5.Load, 6.Control events, 7.LoadComplete, 8.PreRender, 9. SaveStateComplete, 10. Render, 11.Unload
Differences between application and session
Describe the techniques for optimising your application?
. 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 collection classes?
What are object-oriented concepts?
Object: An object is an instance of a class.
Encapsulation: hides detailed internal specification of an object, and publishes only its external interfaces. Thus, users of an object only need to adhere to these interfaces. By encapsulation, the internal data and methods of an object can be changed without changing the way of how to use the object.
Inheritance: A class that derives from another class - known as the base class - inherits the same methods and properties. This promotes reuse and maintainability.
Abstraction: the describing of objects by defining their unique and relevant characteristics (properties). Whilst an object may have 100s of properties normally only those properties of importance to the situation are described. (eg life policies premiums are normally important; whereas the time of day a policy was purchased is not usually of value).
Polymorphism: Allows objects to be represented in multiple forms. Even though classes are derived or inherited from the same parent class, each derived class will have its own behavior. (Overriding and hiding methods)
Explain the life cycle of an ASP .NET page.
Page Initialization Page_Init
View State Loading LoadViewState
Postback data processin LoadPostData
Page Loading Page_LoadPostBack Change Notification RaisePostDataChangedEvent
PostBack Event Handling Raise
PostBackEventPage
Pre Rendering Phase Page_PreRender
View State Saving SaveViewState
Page Rendering Page_RenderPage
Unloading Page_UnLoad

