ASP.NET»ñÈ¡¿Í»§¶Ë¼°·þÎñÆ÷µÄÐÅÏ¢
ASP.NET»ñÈ¡¿Í»§¶ËÐÅÏ¢,ÔÝʱ¾ÍÕ⼸¸ö,ÓдýÌí¼Ó~~
1. ÔÚASP.NETÖÐרÓÃÊôÐÔ£º
»ñÈ¡·þÎñÆ÷µçÄÔÃû£ºPage.Server.ManchineName
»ñÈ¡Óû§ÐÅÏ¢£ºPage.User
»ñÈ¡¿Í»§¶ËµçÄÔÃû£ºPage.Request.UserHostName
»ñÈ¡¿Í»§¶ËµçÄÔIP£ºPage.Request.UserHostAddress
2. ÔÚÍøÂç±à³ÌÖеÄͨÓ÷½·¨£º
»ñÈ¡µ±Ç°µçÄÔÃû£ºstatic System.Net.Dns.GetHostName()
¸ù¾ÝµçÄÔÃûÈ¡³öÈ«²¿IPµØÖ·£ºstatic System.Net.Dns.Resolve(µçÄÔÃû).AddressList
Ò²¿É¸ù¾ÝIPµØÖ·È¡³öµçÄÔÃû£ºstatic System.Net.Dns.Resolve(IPµØÖ·).HostName
3. ϵͳ»·¾³ÀàµÄͨÓÃÊôÐÔ£º
µ±Ç°µçÄÔÃû£ºstatic System.Environment.MachineName
µ±Ç°µçÄÔËùÊôÍøÓò£ºstatic System.Environment.UserDomainName
µ±Ç°µçÄÔÓû§£ºstatic System.Environment.UserName
¿Í»§¶ËIP£ºPage.Request.UserHostAddress;
Óû§ÐÅÏ¢£ºPage.User;
·þÎñÆ÷µçÄÔÃû³Æ£ºPage.Server.MachineName;
µ±Ç°Óû§µçÄÔÃû³Æ£ºSystem.Net.Dns.GetHostName();
µ±Ç°µçÄÔÃû£ºSystem.Environment.MachineName;
µ±Ç°µçÄÔËùÊôÍøÓò£ºSystem.Environment.UserDomainName;
µ±Ç°µçÄÔÓû§£ºSystem.Environment.UserName;
ä¯ÀÀÆ÷ÀàÐÍ£ºRequest.Browser.Browser;
ä¯ÀÀÆ÷±êʶ£ºRequest.Browser.Id;
ä¯ÀÀÆ÷°æ±¾ºÅ£ºRequest.Browser.Version;
ä¯ÀÀÆ÷ÊDz»ÊDzâÊÔ°æ±¾£ºRequest.Browser.Beta;
ä¯ÀÀÆ÷µÄ·Ö±æÂÊ(ÏñËØ)£ºRequest["width"].ToString() + "*" + Request["height"].ToString();//1280*1024
¿Í»§¶ËµÄ²Ù×÷ϵͳ£ºRequest.Browser.Platform;
ÊDz»ÊÇwin16ϵͳ£ºRequest.Browser.Win16;
ÊDz»ÊÇwin32ϵͳ£ºRequest.Browser.Win32;
·þÎñÆ÷¶ËµÄÐÅÏ¢:
·þÎñÆ÷¼ÆËã»úÃû:"http://" + HttpContext.Current.Request.Url.Host + HttpContext.Current.Request.ApplicationPath;
·þÎñÆ÷IIS°æ±¾: Request.ServerVariables["Server_SoftWare"].ToString();
·þÎñÆ÷ÓòÃû:Request.ServerVariables["SERVER_NAME"].ToString();
·þÎñÆ÷¶Ë¿Ú:Request.ServerVariables["Server_Port"].ToString();
·þÎñÆ÷IPµØÖ·:Request.ServerVariables["LOCAl_ADDR"]
·þÎñÆ÷½Å±¾³¬Ê±Ê±¼ä:(Server.ScriptTimeout / 1000).ToString() + "Ãë";
·þÎñÆ÷²Ù×÷ϵͳ:Environment.OSVersion.ToString();
±¾ÎļþËùÔÚÎļþ¼Ð:Request.PhysicalApplicationPath;
·þÎñÆ÷IE°æ±¾:Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Internet Explorer\Version Vector").Ge
Ïà¹ØÎĵµ£º
ÔÚASP.NETÍøÕ¾¿ª·¢ÖпÉÄÜ»áÓöµ½Òª¸ü»»Êý¾Ý¿â£¬È罫Aceess»»ÎªSQL Server £¬ÓÉÓÚAceessÒýÓÃSystem.Data.OleDbÃüÃû¿Õ¼ä£¬SQL ServerÒýÓÃSystem.Data.SqlClientÃüÃû¿Õ¼ä¡£ÔÚÒ»°ã³ÌÐò´úÂëÖÐÎÒÃÇÐèÒª¸ü¸ÄÁ¬½Ó×Ö·û´®£¬ADO.NETÊý¾Ý·ÃÎÊÃüÁî¶ÔÏó£¬×îÂé·³µÄÊDz»Í¬Êý¾Ý¿âÓи÷×Ô²»Í¬SqlÃüÁî¡£ÎÒÃÇ¿ÉÒÔʹÓóéÏ󹤳§Ä£Ê½ÊµÏÖASP.NET·ÃÎʲ ......
1¡¢ÀàÊÇÒýÓÃÀàÐÍ£¬½á¹¹ÔòÊÇÖµÀàÐÍ¡£Òò´Ë½á¹¹ÊÇ·ÅÔÚÕ»£¨Stack£©ÀÀàÔò½ö½öÊǽ«ÒýÓõØÖ·´æ·ÅÔÚÕ»À¶ø¾ßÌåµÄÖµÔò´æ·ÅÔڶѣ¨heap£©Àï¡£
2¡¢¾ÝµÚ1µã¿ÉÒԵóö½áÂÛ£¬ÄǾÍÊÇÀà¶ÔÏóͨ³£ÓÃÀ´´«µÝ´óÊý¾Ý£¬¶ø½á¹¹¶ÔÏóÔòÓÃÀ´´«µÝСÊý¾Ý¡£
3¡¢Àà¿ÉÒԼ̳кͱ»¼Ì³Ð£¬¶ø½á¹¹Ôò²»Ö§³Ö¡£µ«½á¹¹ºÍÀàÒ»Ñù¿ÉÒԼ̳Ð×Ô½Ó¿Ú¡£
4¡¢½á¹¹¶ÔÏó²»ÄÜ ......
ʾÀýÒ»
ÔÚGlobal.asax.csÎļþÖУº
protected void Application_Start(Object sender, EventArgs e)
{
System.Timers.Timer timer1 = new System.Timers.Timer();
&nbs ......
ASP.NET·ÀÖ¹SQL×¢È뺯Êý:
using System;
using System.Text.RegularExpressions;
using System.Web;
namespace FSqlKeyWord
......{
/**//**//**//// <summary>
/// SqlKey µÄժҪ˵Ã÷¡£
/// </summary>
public class S ......
Ê×ÏÈ·¨·½ÓÐ3¸ö£¬ÕâÀï¾Í˵2¸öʵÓõġ£¡£¡£
1£¬Ö±½ÓΪ ¿Ø¼þ innerhtml Ìí¼ÓÖµ
2£¬createElement £¨´´½¨COM£©
3£¬ºǫ́ NEW ¿Ø¼þ£¬Ìí¼Ó
ÕâÀï˵Ï 1£¬2 Á½¸ö·¨·½£¡
1£º
¶¯Ì¬Éú³É ×Ö·û´® string inntext=" <table> <tr> <td style=width:300px;text-align:right; >{0}<input id={1} type=text c ......