Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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ÖÐsubstringÓ÷¨


substring
public String substring(int beginIndex)·µ»ØÒ»¸öеÄ×Ö·û´®£¬ËüÊÇ´Ë×Ö·û´®µÄÒ»¸ö×Ó×Ö·û´®¡£¸Ã×Ó×Ö·û´®Ê¼ÓÚÖ¸¶¨Ë÷Òý´¦µÄ×Ö·û£¬Ò»Ö±µ½´Ë×Ö·û´®Ä©Î²¡£
ÀýÈ磺
"unhappy".substring(2) returns "happy"
"Harbison".substring(3) returns "bison"
"emptiness".substring(9) returns "" (an empty string)
² ......

asp.net C# ·¢ËÍ Óʼþ ºÍ ¸½¼þ ´úÂë

˵µ½·¢ËÍÓʼþ·¢ËÍ£¬ÏÈÌáÒ»ÏÂSMTP(ºÇºÇ£¬¸ßÊÖ¾ÍÌø¹ýÕâÒ»¶Î°É£¡)¡£ SMTPµÄÈ«³ÆÊÇ“Simple Mail Transfer Protocol”£¬¼´¼òµ¥Óʼþ´«ÊäЭÒé¡£ËüÊÇÒ»×éÓÃÓÚ´ÓÔ´µØÖ·µ½Ä¿µÄµØÖ·´«ÊäÓʼþµÄ¹æ·¶£¬Í¨¹ýËüÀ´¿ØÖÆÓʼþµÄÖÐת·½Ê½¡£SMTP ЭÒéÊôÓÚ TCP/IP ЭÒé´Ø£¬Ëü°ïÖúÿ̨¼ÆËã»úÔÚ·¢ËÍ»òÖÐתÐżþʱÕÒµ½ÏÂÒ»¸öÄ¿µÄµØ¡£SMTP ·þ ......

asp.netÔÚÏßÈËÊýͳ¼Æ

ÓÐÈËÒ²ÎÊÁ˸öÔÚÏßͳ¼ÆµÄÎÊÌ⣬ÎҵļûÒâÊÇÕâÑùµÄ£º  
  ÔÚApplication_StartʼþÖмÓÈëÒÔÏ´úÂ룺  
  Application.Lock();  
  Application.["UserCount"]=0;  
  Application.Unlock();  
   
  Session_Startʼ ......

asp.netϺǫ́³£Ó÷ÖÒ³½â¾ö·½°¸µÄ˼¿¼

SQL
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go


--°¢»áéªsosuo8.com¸ù¾ÝÍøÂçÉϵĴúÂë½øÐÐÁËÐ޸ģ¬°æȨ¹éÔ­×÷ÕßËùÓÐ2009-4-5
--°¢»áéª×öÁËÒ»´ÎÉý¼¶£¬2009-9-27
--ÐÞ¸ÄÊä³ö×ܼǼÊý

ALTER PROCEDURE [dbo].[pagination]
@tblName nvarchar(1000), -- ±íÃû
......

»¶Ó­Äúѧϰ asp.net 2.0

Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
< ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ