Posted on: 11/29/2014 11:56:17 AM | Views : 340

Here is a simple content page with just two controls, fileupload and button.
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/HeadOffice/MasterPage.master" CodeFile="FileUpload.aspx.cs" Inherits="HeadOffice_FileUpload" %> <asp:Content ID="Content1" ContentPlaceHolderID="cph" Runat="Server"> <p style="width: 100px !important;"> Upload Image: <asp:FileUpload runat="server" ID="fu" /> </p> <asp:Button runat="server" id="UploadButton" text="Upload" onclick="UploadButton_Click" /> <br /><br /> </asp:Content> here is the cs file 
public partial class HeadOffice_FileUpload : System.Web.UI.Page { protected void Page_Load(object sender, ...

Go to the complete details ...