<%@ Page Language="vb" AutoEventWireup="false" Codebehind="UploadToTheSamePage.aspx.vb" Inherits="EAUploadExamples.UploadToTheSamePage"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>Upload to the same page.</title>
<link rel="stylesheet" href="ExamplesStyle.css">
</HEAD>
<body>
This example demonstrates how to upload file to the same page by handling a
button click event. Code for files processing is located in codebehind file.
<br>
<br>
All uploaded files will be stored to the "UploadedFiles" folder that is located
in the root directory of an examples.<br>
You should grant write access to "UploadedFiles" folder to the ASP.NET process
identity(typically {MACHINE}\ASPNET on IIS 5<BR>
or Network Service on IIS 6).
<br>
<br>
<form id="Form1" method="post" runat="server" enctype="multipart/form-data">
<table style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none">
<tbody>
<tr>
<td>Select file 1:</td>
<td><input type="file" name="file1" size="40" id="file1"></td>
</tr>
<tr>
<td>Select file 2:</td>
<td><input type="file" name="file2" size="40" id="file2"></td>
</tr>
<tr>
<td>Comment:</td>
<td><input type="text" name="comment"></td>
</tr>
<tr>
<td> </td>
<td>
<asp:Button id="Button1" runat="server" Width="80px" Text="Upload"></asp:Button>
</td>
</tr>
</tbody>
</table>
<br>
<asp:Label id="lblResponse" runat="server"></asp:Label>
</form>
<hr>
<a href="default.aspx" title="All examples">Other examples</a>
<p>
Used files: Bin\EasyAlgo.EAUpload.dll, web.config, UploadToTheSamePage.aspx,
UploadToTheSamePage.aspx.vb, ExamplesStyle.css [Optional]
</p>
</body>
</HTML>