我有一个名为uploadProject.aspx的aspx页面,其中包含一个表单和SUBMIT BUTTON 该页面有一个带文件上传的USER CONTROL PAGE,我想将文件保存在“void Submit_Click” 在uploadProject.aspx页面
UploadProject.aspx:
<uc1:Student1 runat="server" ID="Student1" />
<div align="center">
<asp:button id="Submit" runat="server" text="Submit" onclick="Submit_Click" />
</div>
Student.ascx:
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Student.ascx.cs" Inherits="Student" %>
<tr>
<td>
Student Name:
</td>
<td><asp:TextBox ID="StudentNameTB" runat="server">טקסט</asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server" ErrorMessage="Student Name Is required" ControlToValidate="StudentNameTB" ForeColor="Red"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
Image URL::
</td>
<td>
<asp:FileUpload ID="StudentPhoto" runat="server" />
</td>
</tr>
我想将图片保存在UploadProject.aspx.cs 感谢