加入收藏 | 设为首页 | 会员中心 | 我要投稿 聊城站长网 (https://www.0635zz.com/)- 智能语音交互、行业智能、AI应用、云计算、5G!
当前位置: 首页 > 综合聚焦 > 编程要点 > 语言 > 正文

c#多图片上传并生成缩略图的示例代码

发布时间:2023-02-28 14:36:19 所属栏目:语言 来源:
导读:代码如下:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="upload" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head
代码如下:
 
 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload.aspx.cs" Inherits="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>
 
     <style type="text/css">
 
         li
 
         {
 
             list-style: none;
 
             padding-top: 10px;
 
         }
 
     </style>
 
     <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
 
     <script type="text/javascript">
 
         function ValidImage(id, msg) {
 
             $(id).parent().append("<span>" + msg + "</span>");
 
             return false;
 
         }
 
     </script>
 
 </head>
 
 <body>
 
     <form id="form1" runat="server" enctype="multipart/form-data" method="post">
 
         <div>
 
                       <ul>
 
                 <li>
 
                     <input type="file" id="upload1" name="upload" />
 
                 </li>
 
                 <li>
 
                     <input type="file" id="upload2" name="upload" />
 
                 </li>
 
                 <li>
 
                     <input type="file" id="upload3" name="upload" />
 
                 </li>
 
                 <li>
 
 

(编辑:聊城站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!