Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > AJAX

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 09-28-2009, 12:35 PM
naveenforums naveenforums is offline
Registered User
 
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
Reply With Quote
  #2  
Old 10-26-2009, 12:54 AM
ntvinh986 ntvinh986 is offline
Banned
 
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!!!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
very strange problem with jakarta common file upload! pls help me! chinmoy paul Java 0 08-28-2006 02:58 AM
Problem with Animation control and avi file Vidhi VB Classic 2 06-03-2006 01:30 AM
Newbie: Deploying .war file, getting it working with MySQL hughmorgan Java 0 05-08-2006 08:39 AM
Help: Upload file century ASP.NET 1 09-04-2001 01:34 PM
upload size control multipart form-data Keith ASP.NET 0 10-12-2000 01:44 PM


All times are GMT -4. The time now is 02:38 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.