Click here to Skip to main content
15,894,539 members

Comments by Member 10512842 (Top 3 by date)

Member 10512842 3-Feb-16 6:03am View    
Actually I have to do is
1) One Textbox(for showing uploaded files path) and one button(for doing fuctionality of file upload control)

Member 10512842 3-Feb-16 6:01am View    
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

<asp:Panel ID="PanelContainer" runat="server">



<asp:Button ID="ButtonUpload" runat="server" OnClick="ButtonUpload_Click" Text="Upload" />

<asp:Literal ID="LiteralMessage" runat="server" Visible="false" EnableViewState="false"><p>File uploaded</p>
<asp:HiddenField ID="filepath" runat="server" />
</p>
<p>
<asp:Button ID="Button1" runat="server" Height="21px" OnClick="Button1_Click" Text="Convert" />
</p>
<p>
<asp:TextBox ID="TextBox2" runat="server" Height="184px" TextMode="MultiLine" Width="365px">
 <asp:Button ID="Button2" runat="server" Enabled="False" Height="21px" Text="Save As" />
</p>
<p>
 </p>
<p>
 </p>
Member 10512842 3-Feb-16 5:43am View    
Thanks for reply,

Your code is preety good.

but I don't wanna to show fileupload control on page, directly on click of Upload button wanna to show File browser and after selection of file it gets upload.

Please guide.