<compilation tempDirectory=“E:\ASP.Net Temporary Folder\” debug=“false“>
One can find the documentation of all different sections of ASP.net configuration file at:
http://msdn2.microsoft.com/en-us/library/b5ysx397(VS.71).aspx
In case when Internet is not available, or you just need a quick reference, there is also a small helpful file in the configuration folder. This file is named “web.config.comments” and is in the CONFIG folder of the ASP.net framework folder.
[ add comment ] | permalink | related link |




( 3 / 792 )using System.Management;
#region //ping
/// <summary>
/// Get client speed by ping bytes/million second, bytes/ms
/// </summary>
/// <param name="Target"></param>
/// <returns></returns>
public static int Ping(string Target)
{
int Time=10;
try
{
Time=0;
SelectQuery query = new SelectQuery("Win32_PingStatus", string.Format("Address='{0}'", Target));
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);
foreach (ManagementObject result in searcher.Get())
{
for(int i=0;i<20;i++)
{
if (result["StatusCode"] != null && (0 == (UInt32)result["StatusCode"])&&result["ResponseTime"]!=null)//connected
{
Time=Time+Convert.ToInt32(result["ResponseTime"]);
}
}
}
Time=Time/20;
}
catch{}
if (Time==0)
Time=10;
return 32/Time;
}
#endregion
[ 1 comment ] ( 134 views ) | permalink | related link |




( 2.9 / 5089 )Float
(\+|-)?([0-9]+\.?[0-9]*|\.[0-9]+)([eE](\+|-)?[0-9]+)?
Number:
\d{1,}
[ add comment ] | permalink | related link |




( 3 / 4954 )EXEC sp_MSforeachtable @command1="EXEC sp_spaceused '?'"
[ add comment ] | permalink | related link |




( 3 / 3374 )UPDATE table
SET values
FROM join other tables here.
Example
Update TableA
SET TableA.Col1=TableB.Col1
From TableA INNER JOIN TableB ON TableA.ID=TableB.ID
[ add comment ] | permalink | related link |




( 3 / 10479 )Next

Avatar










