asp.net IPÏÞÖÆµÇ½
//˼·:½«ÆäIP´æÈëÊý¾Ý¿âµÄʱºò,ÒÔÊý×ÖµÄÐÎʽ´æÈë.¼´¿É±È½Ï´óС.
//±ÈÈç:192.168.1.1 ·²ÊǺóÃæÎ»Êý²»Âú3λµÄ¶¼ÒÔ0Ìî³ä.....ÄÇô´æÈëÐÎʽΪ:192168001001
//ÒòΪ:1Ö»ÓÐһλ...ËùÒÔ¼Ó00ÕâÑùÊý¾Ý¿âÖÐÈ«²¿µÄ¶¼Îª12λµÄÊý×Ö,¼´¿É±È½Ï.
public string getip(string ip)
{
String[] arr=ip.Split(new char[] {'.'});
string str = "";
for (int i = 0; i < arr.Length; i++)
{
if (str == "")
{
string str1="000" + arr[0].ToString();
str = str1.Substring(str1.Length - 3);
}
else
{
string str1 = "000" + arr[i].ToString();
str = str + str1.Substring(str1.Length - 3);
}
}
return str;
}
Ïà¹ØÎĵµ£º
dzÎöASP.NETµÄPage.IsPostBack ÊôÐÔ
http://www.sina.com.cn 2008Äê05ÔÂ06ÈÕ 11:33 IT168.com
¡¾IT168¼¼ÊõÎĵµ¡¿
ÏÖÔÚ´Ó¶ÔASP.NETÒ³ÃæµÄÖ´ÐÐ˳Ðò¿ªÊ¼£¬Ìå»áÒ»ÏÂB/S½á¹¹µÄ³ÌÐòµÄÌØµã£¬ÏÂͼÊÇASP.NETÒ³ÃæµÄÖ´ÐÐ˳Ðò˵Ã÷£º
Page_Init£¨Ò³Ãæ³õʼ»¯Òý·¢µÄʼþ£©——>Page_Load£¨¼ÓÔ ......
<asp:DropDownList ID="compactType" runat="server" AutoCallBack="True" Width="153px"> </asp:DropDownList>
<?xml version="1.0" encoding="utf-8" ?>
<roots>
<root>
<id>1</id>
<Culture> ......
ǰ̨´úÂ룺
<script type="text/javascript">
<%=LoadImage() %>
imgUrl1="uploads/"+ImgSrc[0];
imgtext1=ImgAlt[0]
imgLink1=escape("adimg.aspx?Img_ID="+ImgUrl[0]);
imgUrl2="uploads/"+ImgSrc[1];
imgtext2=ImgAlt[1]
imgLink2=escape("adimg.aspx?Img_ID="+ImgUrl[1]);
imgUrl3=" ......
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......
1.½«flex±àÒëºóµÄ³ÌÐò²åÈëµ½asp.netÒ³Ãæ
flexµÄ×îÖÕÊä³ö¾ÍÊÇÒ»ÕÅÍøÒ³+Ò»¸öflash(.swfÎļþ)
Õâô˵ÄãÃ÷°×Á˰ɣ¬Æäʵ¾ÍÊÇÓÃËûÉú³ÉµÄÍøÒ³µÄ·½Ê½°ÑÄǸö.swfÎļþ²åÈëµ½ÄãµÄasp.netÒ³Ãæ¾Í¿ÉÒÔÁË¡£
¼ÙÈçÄãµÄflex3ÏîÄ¿Ãû×Ö½ÐTestApp£¬×î¼òµ¥Ö±½ÓµÄ°ì·¨¾ÍÊÇ£¬
°Ñ"bin-debug"Ŀ¼Ïµģº
TestApp.html
TestApp.swf
AC_OETags.js ......