Monday, August 24, 2009

WPF Interview Questions

1) What is WPF?
2) What are the container controls in WPF?
3) Is ADO.NET supported in WPF?
4) Explain dependency properties?
5) What's a style?
6) What's a template?
7) What is Routed Events & Commands?
8) What is Custom Controls in WPF?
9) How can worker threads update the UI?
10) Differences between Silverlight 2 and WPF
11) What is MVVM and MVP?

Tuesday, July 21, 2009

Silverlight and WCF Interview Questions

Silverlight:

1) What is Silverlight?
2) What are the container controls in Silverlight? Give me the brief explanation.
3) How to load the Flash control in Silverlight?
4) What is Silverlight.js file?
5) How to communicate flash into silverlight?
6) Does Silverlight support ADO.NET? and How to load the data to Silverlight from database?
7) How to use the styles in Silverlight? Can we load the external CSS file into Silverlight?
8) What is the difference between Data Form and Data Pager?
9) Video streaming in Silverlight?
10) How to embed the Silverlight xap file in html page?
11) what is xap file?
12) what is xaml?
13) can we use more than one xaml file in same project? explain?
14) what is StoryBoard?
15) How to use charts and Reports in Silverlight?
16) what is 3D animation in Silverlight?


WCF:

1) What is the difference between WCF and ASMX?
2) What is binding in WCF?
3) What binding is supported in Silverlight?
4) WCF security
5) Dead Letter Queues
6) Poison Message
7) Fault Contracts
8) What is it the Reliable session?
9) What is it the Transmission queue and the Target queue? What is the difference?
10) Could the two-way service operations be used with queued binding?
11) What is it a correlation?
12) How can we create a singleton service?
13) How to set the timeout property for the WCF Service client call?
14) What is Transaction?

Wednesday, July 1, 2009

Types of Serialization

serialization is the process of converting an object into a sequence of bits so that it can be persisted on a storage medium (such as a file, or a memory buffer) or transmitted across a network connection link.

Emp emp = new Emp();
emp.Id = 1;
emp.Name = "S.Bala";
MemoryStream ms = new MemoryStream();

//Binary
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter binaryFormatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
binaryFormatter.Serialize(ms, emp);
ms.Position = 0;
Emp empGet = binaryFormatter.Deserialize(ms) as Emp;
ms.Close();

//SOAP
ms = new MemoryStream();
System.Runtime.Serialization.Formatters.Soap.SoapFormatter soapFormatter = new System.Runtime.Serialization.Formatters.Soap.SoapFormatter();
soapFormatter.Serialize(ms, emp);
ms.Position = 0;
empGet = new Emp();
empGet = soapFormatter.Deserialize(ms) as Emp;
ms.Close();

//XML
ms = new MemoryStream();
System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(typeof(Emp));
xs.Serialize(ms, emp);
ms.Position = 0;
empGet = new Emp();
empGet = xs.Deserialize(ms) as Emp;
ms.Close();


[Serializable]
public class Emp
{
public int Id;
public string Name;
}

Sunday, May 17, 2009

ASP.NET AND SQL SERVER Interview Questions

SQL SERVER:

1) DDL/DML triggers
2) Joins
3) Sql Profiler
4) DTS Packages
5) Sql server agent.
6) how to find the second maximum record.
7) how to find the 11 maximum record.
SELECT * FROM (
SELECT ROW_NUMBER() OVER(ORDER BY [TimeStamp]) AS RowId,*
FROM [LOG]) AS Collections
WHERE
Collections.RowId > 45
AND
Collections.RowId < 51
8) sql server 2005 vs sql server 2000
9) How to fetch the records of second highest marks in each section of the class.
10) Normalization forms?
11) Primary key, foreign key, candidate key, composite key, unique key explanation?


ASP.NET:

1) Session management
2) Client side session management
3) Validation controls
4) Web.config authentication, authorization
5) Generics
6) Page life Cycle
7) SDLC
8) web controls vs custom controls
9) Application vs Caching
10) Interface vs Abstract
11) Sealed Classes vs Serializable classes
12) Partial classes
13) Master page
14) MultiThreading and Single Thread
15) Events vs Delegates
16) Types of Serialization
17) static vs normal constructor
18) How to create object for the class and it is holding one private constructor only
19) Forms vs windows authentication
20) custom error page
21) mobile application vs normal web application difference
22) Singleton
23) Abstract class objects
23) Interface objects
24) try catch finally
25) Method overloading and overriding

Thursday, April 9, 2009

How to install Silverlight

This is the article describe the prerequisite needed to create Silverlight development environment.

1) Visual Studio 2008 with SP1 service pack.
2) Silverlight3_Tools.exe which installs the Silverlight tool boxes and application files from Here

3) Microsoft Expression Blend.exe which is used to design the xaml page.


4) Silverlight 3 Toolkit March 2009.msi which contains the samples.

Monday, March 16, 2009

No visual studio template information found

No visual studio template information found in VS 2005 or VS 2008

Soln:

Just open VS command prompt and type the following command..

devenv /installvstemplates


ex:

C:\Program Files\Microsoft Visual Studio 8\VC>devenv /installvstemplates

Friday, January 16, 2009

Create Session in asp.net

Cretae Session:

Session["UserID"] = UserId;
Session.Timeout = 30;
FormsAuthenticationTicket formAuthenticate = new FormsAuthenticationTicket(1, UserId.ToString(), DateTime.Now, DateTime.Now.AddMinutes(30), true, FormsAuthentication.FormsCookiePath);
HttpCookie cookies = new HttpCookie(FormsAuthentication.FormsCookieName, FormsAuthentication.Encrypt(formAuthenticate));
cookies.Expires.AddYears(1);
Response.Cookies.Add(cookies);


Get Session:

string guidSession = HttpContext.Current.User.Identity.Name.ToString();