Tuesday, November 23, 2010

WF

http://ceres.napier.ac.uk/staff/bill/wwf.pdf

WCF

1-http://www.c-sharpcorner.com/uploadfile/sunilbabuylv/wcf4beginners08132008040537am/wcf4beginners.aspx
2-http://www.wcftutorial.net/Home.aspx

Thursday, September 16, 2010

Header column Text in Datagrid

http://www.codeproject.com/KB/webforms/Datagrid_Col_Example.aspx
private void HideShowColumns(DataGrid dg)
{
if(dg == null)
{
return;
}
// Loop through all of the columns in the grid.

foreach(DataGridColumn col in dg.Columns)
{
// Hide the Salary and SS# Columns.

if(col.HeaderText == "ExampleColumn")
{
col.Visible = false;
}
}
}

Monday, September 13, 2010

interface with private method

http://msdn.microsoft.com/en-us/library/87d83y5b%28VS.80%29.aspx
http://msdn.microsoft.com/en-us/library/ms173157%28v=VS.80%29.aspx

Thursday, September 2, 2010

parms

http://msdn.microsoft.com/en-us/library/w5zay9db%28VS.71%29.aspx

call by value and reference

http://msdn.microsoft.com/en-us/library/s6938f28%28VS.80%29.aspx

http://msdn.microsoft.com/en-us/library/0f66670z%28VS.71%29.aspx#vclrfpassingmethodparameters_example1

ref and out variabls differences

http://msdn.microsoft.com/en-us/library/t3c3bfhx%28VS.80%29.aspx

Wednesday, September 1, 2010

Access modifier

http://www.codeproject.com/KB/cs/CsharpAccessModifiers.aspx

Tuesday, August 31, 2010

Constructor

http://www.codeproject.com/KB/dotnet/ConstructorsInCSharp.aspx

Sunday, August 15, 2010

Why string is a reference type?

string is reference type but really special one. When you do operation of both string values like in your example
C = A, there is nothing in this operation simular to normal class behavior. So C doesn't have a reference of A. In that operation, a new string class is created and the value from string A is copied to string C. String C and String A are pointing in completly different memory address. That is way, when you have many string operation, for example loop and in every iteration you have a string manipulation, because of new string class generation, that operation is performance leak. In that situation it is preffered to use StringBuilder. Why, because StringBuilder doesn't create new string for any string operation.

Now for question, why string is not value type and it's reference type.
When you have let's say int value, Int type has defined lenght and that is 4 byte. And for every value type you know the exact memory space that will take. But for string you don't know that. It will be stupid to have a string type in wich you should always define how long it is. And if you want to put in that string variable a value with bigger lenght that string is defined, that will be disallowed.
Why is string a special class. It is special because you have a reference class, but the way of using it, looks like a value type. So, that's why you do operation like:
string C = A, and not string C = new string(A);
You don't have to instance string class because .NET framework do that for you when you first time set it's value. If you not set it's value string has value of null like any other reference type. Every language platform has a special treatment for string type. .NET is not exclusion from that too.

Monday, August 9, 2010

Solution to print a div and iframe content with single print

http://www.webdeveloper.com/forum/showthread.php?t=152798

Wednesday, August 4, 2010

Nested class

http://www.codeproject.com/KB/cs/nested_csclasses.aspx

Monday, May 24, 2010

Implementing Dynamic WHERE-Clause in Static SQL

http://www.codeproject.com/KB/database/Dynamic_WHERE_Clause.aspx

Friday, January 8, 2010

Reflection

http://www.codersource.net/published/view/291/reflection_in.aspx
http://www.codeguru.com/csharp/csharp/cs_misc/reflection/article.php/c4257/

Thursday, January 7, 2010

Common Type System

http://aspalliance.com/1530_Understanding_Common_Type_System_in_NET.all

interview questions

http://interviews.c-sharpcorner.com/Default.aspx

username: som.rajat
password: rajat314