dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: File upload control not working with update panel

  1. #1
    Join Date
    Oct 2008
    Posts
    8

    File upload control not working with update panel

    Hi,

    I am working with Asp.Net FileUpload control with ajax update panel,

    if i use the AsyncPostBackTrigger,i am unable to get the filename in serverside,
    but if i use PostBackTrigger its working fine with page refreshing

    my Html code is:

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:FileUpload ID="FileUpload1" runat="server" />
    <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </ContentTemplate>
    <Triggers>
    <asp:PostBackTrigger ControlID="Button1" />
    </Triggers>

    I dont want to refresh page while uploading file

    please help me regarding same

    Naveen G

  2. #2
    Join Date
    Oct 2009
    Posts
    1
    Quote Originally Posted by naveenforums View Post
    Hi,

    I am working with Asp.Net FileUpload control with ajax update panel,

    if i use the AsyncPostBackTrigger,i am unable to get the filename in serverside,
    but if i use PostBackTrigger its working fine with page refreshing

    my Html code is:

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:FileUpload ID="FileUpload1" runat="server" />
    <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    </ContentTemplate>
    <Triggers>
    <asp:PostBackTrigger ControlID="Button1" />
    </Triggers>

    I dont want to refresh page while uploading file

    please help me regarding same

    Naveen G

    Hi all, I am a new member of forum. Would a newcomer be warmly welcome here? Good day you guys!!!

Similar Threads

  1. Replies: 0
    Last Post: 08-28-2006, 01:58 AM
  2. Problem with Animation control and avi file
    By Vidhi in forum VB Classic
    Replies: 2
    Last Post: 06-03-2006, 12:30 AM
  3. Replies: 0
    Last Post: 05-08-2006, 07:39 AM
  4. Help: Upload file
    By century in forum ASP.NET
    Replies: 1
    Last Post: 09-04-2001, 12:34 PM
  5. upload size control multipart form-data
    By Keith in forum ASP.NET
    Replies: 0
    Last Post: 10-12-2000, 12:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center