ASP.NET批量上传excel数据到数据库MySql
aspx页面
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="customin.aspx.cs" Inherits="kf_customin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<mce:style type="text/css"><!--
body{font-size:12px;background-color:#0099FF;}
--></mce:style><style type="text/css" mce_bogus="1"> body{font-size:12px;background-color:#0099FF;}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<div style="z-index: 101; left: 250px; width: 629px; position: absolute; top: 170px;
height: 42px">
<table>
<tr>
<td style="width: 120px;text-align:center;" colspan="4">
<p style="color:Red;width:500px;">
*excle的中文不允许出现繁体字!(重复的公司将在左侧输出)</p>
</td>
</tr>
<tr>
<td style="width: 120px">
<asp:Label ID="Label1" runat="server" Text="批量导入客户资料" Width="153px" Font-Bold="True" Font-Italic="False" Font-Size="Medium"></asp:Label></td>
<td style="width: 100px">
<asp:FileUpload ID="FileUpload1" runat="server" BackColor="White" /></td>
<td colspan="2" style="width: 254px"
相关文档:
在Web编程过程中,存在着很多安全隐患。比如在以前的ASP版本中,Cookie为访问者和编程者都提供了方便,并没有提供加密的功能。打开IE浏览器,选择“工具”菜单里的“Internet选项”,然后在弹出的对话框里单击“设置”按钮,选择“查看文件”按钮,在弹出的窗口中,就会显示硬盘里 ......
此处提供的代码用来实现当asp.net页面中的某个Button被点击后disable掉该页面中所有的Button,从而防止提交延时导致的多次提交。基于之前的onceclickbutton脚本.
//ASP.NET中防止页面多次提交的代码:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var obj = event.srcElem ......
SQL服务器 ODBC连接方式
标准安全连接
Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
信任连接
Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Trusted_Connection=Yes;
提示输入用户名和密码方式
这个有一点问题,首先你需要设置一个Pro ......
public static string GetCustomerCName(ref ArrayList arrayCName,ref ArrayList arrayID)
{
SqlConnection con=ADConnection.createConnection();
  ......