37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Upload.aspx.cs" Inherits="SuperMap.RealEstate.HighWay.Modules.ContractTemplated.Upload" %>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head runat="server">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
|
<title></title>
|
|
<script type="text/javascript">
|
|
function checkform() {
|
|
var strs = document.getElementById("FileUpload1").value;
|
|
if (strs == "") {
|
|
alert("请选择要上传的图片!");
|
|
return false;
|
|
}
|
|
|
|
var n1 = strs.lastIndexOf('.') + 1;
|
|
var fileExt = strs.substring(n1, n1 + 3).toLowerCase()
|
|
if (fileExt != "doc" && fileExt != "docx") {
|
|
alert('doc、docx后缀文件上传!');
|
|
return false;
|
|
}
|
|
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form id="form1" runat="server">
|
|
<div>
|
|
<asp:FileUpload ID="FileUpload1" runat="server" Width="220px" />
|
|
<asp:Button ID="Button1" runat="server" CssClass="button" OnClick="Button1_Click"
|
|
Text="上传" />
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html>
|