易截截图软件、单文件、免安装、纯绿色、仅160KB

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;
    }


相关文档:

ASP.NET单值和列表控件的数据绑定

一、(单值绑定)在页面的后台代码中定义公有变量,如下:
 public string gongYou = "声明的公有成员";
 ①然后在页面的源中调用,如下:
<asp:Label ID="lblMgs" runat="server" Text="<%#gongYou >"></asp:Label>
  ②当然最后要记得绑定数据:
 protected void Page_Load(object ......

asp.net 4种事务


<!--
/* 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 ......

asp.net Request.ServerVariables 各参数说明集合

Request.ServerVariables["Url"]
返回服务器地址
Request.ServerVariables["Path_Info"]
客户端提供的路径信息
Request.ServerVariables["Appl_Physical_Path"]
与应用程序元数据库路径相应的物理路径
Request.ServerVariables["Path_Translated"]
通过由虚拟至物理的映射后得到的路径
Request.ServerVariables ......

关于asp.net页面添加非空校验控件注意事项

从来都很少写博,现在开始写写,方便自己用的时候不用搜索,或许还可以帮助到别人,何乐而不为呢?呵呵。
注意事项一:如果页面点击按钮无法触发验证控件的作用时,解决办法如下:
    c:\WINNT\Microsoft.NET\Framework\v1.1.4322  
   1.开始菜单-->运行cmd    
&nbs ......

Flex与ASP.NET结合

1.将flex编译后的程序插入到asp.net页面
flex的最终输出就是一张网页+一个flash(.swf文件)
这么说你明白了吧,其实就是用他生成的网页的方式把那个.swf文件插入到你的asp.net页面就可以了。
假如你的flex3项目名字叫TestApp,最简单直接的办法就是,
把"bin-debug"目录下的:
TestApp.html
TestApp.swf
AC_OETags.js ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号