Home > DeveloperSection > Forums > Is it possible to use FileUpload control within the update panel?
Tanuj Kumar

Total Post:134

Points:940
Posted on    June-04-2012 4:28 AM

 AJAX AJAX 
Ratings:


 1 Reply(s)
 2365  View(s)
Rate this:
Hello Everyone,
Can anyone tell me, Is it possible to use FileUpload control within the update panel?. Please reply with code.



Arun Singh

Total Post:68

Points:476
Posted on    June-05-2012 2:08 AM

Hi Tanuj Kumar,
YES! of course, you can use FileUpload control within update panel. You can use FileUpload control within update panel by using following line of code...

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="conditional">
   <ContentTemplate>
      <ews:DatePicker ID="DatePicker1"
         runat="server" UsingUpdatePanel="True" /><br />
      <asp:Label ID="Label1" runat="server"></asp:Label><br /><br />
      <asp:FileUpload ID="FileUpload1" runat="server" />
      <asp:Button ID="Button1" runat="server"
         Text="Upload" />
   </ContentTemplate>
</asp:UpdatePanel>

I hope it will solve your problem. Please marked as answer if this line of code will solve your problem.


 

Modified On Jun-05-2012 02:10:23 AM

Don't want to miss updates? Please click the below button!

Follow MindStick