易截截图软件、单文件、免安装、纯绿色、仅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上传图片汇总

1 使用标准HTML来进行图片上传
前台代码:
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <table> 
       &nbs ......

asp.net 读取Xml文件并进行DropDownList数据绑定

<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> ......

用C#(ASP.NET)怎么实现文件下载功能

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
public partial class _Default : Syste ......

ASP.NET避免页面重新整理时重复发送...

我们可以继承 ASP.NET 的 Page 类别,自行扩充所需的功能!作法如下:
1、继承 System.Web.UI.Page,自订一个 BasePage 类别。
以下为引用的内容:
using
 System;   

  

/// <summary>
  

/// BasePage 的摘要描述
  

///&nbs ......

asp.net c# 数据库备份

protected void btnsearch_ServerClick(object sender, EventArgs e)
    {
        string lujing=this.Text2.Value.ToString().Trim();
        string shujuku = this.jine.Value;
      &nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号