UploadToTheSamePage.aspx Font Size:
Source Code Viewer Files: UploadToTheSamePage.aspx   UploadToTheSamePage.aspx.cs   
Config File: Web.Config   
CSS File: ExamplesStyle.css   
<%@ Page language="c#" Codebehind="UploadToTheSamePage.aspx.cs" AutoEventWireup="True" 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 />        
        <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>&nbsp;</td>
                        <td>
                            <asp:Button id="Button1" runat="server" Width="80px" Text="Upload" onclick="Button1_Click"></asp:Button>
                        </td>
                    </tr>
                </tbody>
            </table>
            <br />
            <asp:Label id="lblResponse" runat="server"></asp:Label>
        </form>
        <hr />
        
        <a target="_blank" href="http://www.easyalgo.com/quickstart/util/srcview.aspx?path=/Examples/EAUpload/UploadToTheSamePage.src">View C Sharp source code</a>&nbsp;&nbsp;
        <a target="_blank" href="http://www.easyalgo.com/quickstart/util/srcview.aspx?path=/Examples/EAUpload/VBNET/UploadToTheSamePage.src">View VB NET source code</a>
        
    </body>
</HTML>