Archive

Archive for the ‘dotnetjunkies’ Category

dotnetjunkies communityserver upgrade ???

Its a dismal that there is no staff around dotnetjunkies to upgrade communityserver,why guys,both browser support is so less.Main reason I dont post is this.Shame no upgrade for years they just want the ad revenue !!!

Categories: dotnetjunkies

Date Intersection TSQL Query , Dates between range.

Say you want to find the range of dates or date values between two dates (say Start Date and and End Date) Just add AND NOT((EndDate @EndDate)); Intersecting dates are returned

Categories: dotnetjunkies

Sorting DataTable Snippet

Sorting DataTable Snippet

 private static void SortDataTable(DataTable dt, string sort)
{
DataTable newDT = dt.Clone();
int rowCount = dt.Rows.Count;

DataRow[] foundRows = dt.Select(null, sort); // Sort with Column name
for (int i = 0 ; i < rowCount; i++)
{
object[] arr = new object[dt.Columns.Count];
for (int j = 0; j < dt.Columns.Count; j++)
{
arr[j]=foundRows[i][j];
}
DataRow data_row = newDT.NewRow();
data_row.ItemArray=arr;
newDT.Rows.Add(data_row);
}

//clear the incoming dt
dt.Rows.Clear();

for(int i = 0; i < newDT.Rows.Count; i++)
{
object[] arr = new object[dt.Columns.Count];
for (int j = 0; j < dt.Columns.Count; j++)
{
arr[j]=newDT.Rows[i][j];
}

DataRow data_row = dt.NewRow();
data_row.ItemArray = arr;
dt.Rows.Add(data_row);
}

}

Via http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=36859

Categories: dotnetjunkies

IP Address Validation .net 2.0 Snippet

IPAddress IP;
bool valid = IPAddress.TryParse(“143.3.3.3”, out IP);
if (valid)
{
MessageBox.Show(String.Format(“IPAddress {0} is valid”,IP.ToString()));
}
else
{
MessageBox.Show(“IPAddress is not valid”);
}

Courtesy: AdGroot (ExPExchg)

Categories: dotnetjunkies

SimpleMVC.NET

Categories: dotnetjunkies

.CHM files residing on a network drive don’t display their contents

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions]
“MaxAllowedZone”=dword:00000001

Make a .reg file with this and test

Windows Registry Editor Version 5.00

Categories: dotnetjunkies

CORBA EXPLAINED SIMPLY

A concise book for people who want a technical understanding of the concepts and terminology of CORBA without learning the low-level details http://www.ciaranmchale.com/corba-explained-simply/ Available in PDF also at http://www.ciaranmchale.com/download/

Categories: dotnetjunkies