ASP.NETÈçºÎ»ñÈ¡Óû§µÄIP - .NET¼¼Êõ / ASP.NET
ÍøÕ¾ºǫ́¹ÜÀíÐèÒªÏÔʾµÇ¼ÈËÔ±µÄIP¡£×îºÃÄÜÏÔʾIPµØÖ·µÄ¹éÊôµØ£¬Çë½Ì¸÷λ´óϺÈçºÎʵÏÖѽ£¿×îºÃÄÜÓÐÔ´Â룬лл£¡£¡
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
¹éÊôµØ¿ÉÒÔÓÃÒ»¸öÊý¾Ý¿âÀ´²éѯ£¬Ò²¿ÉÒÔÓÃweb service¡£
´ÓRequestÁ÷ÖлñÈ¡
Request.UserHostAddress
¹éÊôµØÐèÒªipÊý¾Ý¿â,ºÜ¶àÍøÕ¾ÓÐÕâÑùµÄ¹¦ÄÜ,ÌáÒ»¸öhttpÇëÇó¾ÍÄÜ»ñÈ¡µ½
²Î¿¼
private string GetClientIP()
{
string result = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (null == result || result == String.Empty)
{
result = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
}
if (null == result || result == String.Empty)
{
result = HttpContext.Current.Request.UserHostAddress;
}
return result;
}
http://topic.csdn.net/u/20090617/11/8f0432b6-84ee-49da-a55f-86b3d343ab8b.html
string sIP = Page.Request.UserHostAddress;
Ïà¹ØÎÊ´ð£º
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
ÔÚaspÀïÔõôµ÷ÓÃjavaдµÄwebservice·½·¨£¬Óкܶ෽·¨
- <message name="RtPnrIn">
<part name="bstrPnrNO" type="s:string" />
<part name ......
C# code:
SqlConnection conn = CsDB.sqlcon();
SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
Microsoft JET Database Engine '80040e07'
±ê×¼±í´ïʽÖÐÊý¾ÝÀàÐͲ»Æ¥Åä¡£
\wwwroot\update.asp, line 20
--------------------------------------------------------------------------------
Ho ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøÕ¾Í¼Æ¬¶¼Õ¼ÓÃÁËÒ»´ó°ë
ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂð£¿
Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵
3Q´ó¼Ò
htmlÒ³Ãæ.
Õâ¸ö,¼ÈÈ»Ö÷Ò ......