WebFileUploaded doesn't work in Update Panel

2 replies. Last post: March 29, 2011 6:07 AM by Martin Lie
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Jim DresserMember

I've created a very simple page that has a WebComboBox, a button that posts-back, and a WebFileUploader, which is inside an update panel. Before the page posts-back, the Uploader control looks and works correctly.  But, after the button submits the page, the WebFileUploader is not completely redrawn (the checkbox, filename textbox and the 'Select' box are missing - only the 'Upload now' button is displayed).  This is preventing the user from uploading a file.


What am I doing wrong?

I'm trying to create a page where the user will pick a product from the WebCombo, click the 'PartLookup' button, and have the update panel display info for the product and allow the user to upload new photos for that product.

Thanks for the help,

Jim

P.S.   ASP.NET version 4.0, and using Visual Studio 2010

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="MasterController.Filter.test" %>


<%@ Register Assembly="ISNet.WebUI.WebCombo" Namespace="ISNet.WebUI.WebCombo" TagPrefix="ISWebCombo" %>
<%@ Register Assembly="ISNet.WebUI.WebTextEditor" Namespace="ISNet.WebUI.WebTextEditor" TagPrefix="ISWebTextEditor" %>
<%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop" TagPrefix="ISWebDesktop" %>
<%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<div>
<ISWebCombo:WebCombo ID="WebCombo_PartNumber" runat="server" DropDownRows="1000" Width="200px" AllowWildCardSearch="True"
ViewStateItems="All" ViewStateMode="Enabled" Height="22px" Latency="100" DataTextField="PartNumber" DataValueField="Id"
UseDefaultStyle="True">
<LayoutSettings EntryMode="AutoComplete" EnableAnimation="False" ResultBoxWindowType="Popup" RoundCorner="False" AlwaysShowHelpButton="false">
</LayoutSettings>
</ISWebCombo:WebCombo>
<asp:Button ID="Button_PartLookup" runat="server" Text="Lookup -->" OnClick="Button_PartLookup_Click" />
<asp:UpdateProgress ID="UpdateProgress1" runat="server" DisplayAfter="0" DynamicLayout="false">
<ProgressTemplate>
<img id="ajaxloader" src="~/_Images/ajax-loader.gif" runat="server" alt="" />   Please wait... Looking up info
</ProgressTemplate>
</asp:UpdateProgress>
</div>
<div>
<asp:UpdatePanel ID="UpdatePanel1" RenderMode="Block" UpdateMode="Conditional" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button_PartLookup" EventName="click" />
</Triggers>
<ContentTemplate>
<ISWebTextEditor:WebFileUploader ID="WebFileUploader1" runat="server" UploadPath="../_ProductData/Spectra" FileTypes="*.txt"
Caption="Please select a file ( *.txt )" TextSettings-MessageText="File Uploaded !" UploadType="BatchUpload" InitialFilesCount="2"
AllowAdd="false" AllowRemove="False">
</ISWebTextEditor:WebFileUploader>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>


All times are GMT -5. The time now is 1:57 PM.
Previous Next