<%@ Page Language="C#" AutoEventWireup="true" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void btnUpload_Click( object sender, EventArgs e )
{
if (FileUpload1.PostedFile.InputStream.Length < 1)
{
Msg.Text = "请选择文件。";
return;
}
string FileName = FileUpload1.FileName;
if (FileName.ToLower().IndexOf(".txt") == -1)
{
Msg.Text = "请选择文本文件。";
return;
}
[更多...]
用SQL删除重复记录的N种方法
例如:
id name value
1 a pp
2 a pp
3 b iii
4 b pp
5 b pp
6 c pp
7 c pp
8 c iii
id是主键
[更多...]