Hi,is it possible valorize one or more label during, not at the end, the execution of the OnUpdateComplete's code ?
View Complete Post
I've created an AsyncFileUpload device that uploads an image in ListView but it doesn't refresh on the page until the page is manually refreshed. Any ideas on how to accomplish this? This is the applicable code:
In ListView control:
<asp:UpdatePanel ID="udpPhoto" runat="server">
<span style="text-align: center; vertical-align: middle; font-size: 7pt;">
<asp:Button ID="btnEPhoto" Font-Bold="False" TabIndex="160" Text="Upload/Change Photo"
UseSubmitBehavior="False" OnClick="btnPhoto_Click" runat="server" />
<asp:Label ID="lblEPhoto" runat="server" Font-Bold="True" Text="Uploaded Photo:" />
<asp:HyperLink ID="lnkEPhoto" runat="server" BorderWidth="2px" NavigateUrl='<%# Eval("Photo_Recent") %>'
<asp:Image runat="server" ImageUrl='<%# Eval("Photo_Recent") %>' Height="50px" ID="imgEPhoto">
I have added AsyncFileUpload to creata user wizard control. When I tried to upload the file this control seemed to work fine and show confirmation at the end. But when I checked the website no file has been uploaded at all.
Here is the code, please let me know why its not uploading the files/images
<asp:ToolkitScriptManager ID="ScriptManager1" runat="server"></asp:ToolkitScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:CreateUserWizard ID="CreateUserWizard1" runat="server"
FinishDestinationPageUrl="~/MyPage.aspx" LoginCreatedUser="False" CreateUserButtonText="Add" oncreateduser="CreateUserWizard1_CreatedUser1"
<asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" >
<asp:WizardStep ID="WizardStep1" runat="server" Title="Set preferences">
<asp:AsyncFileUpload ID="AsyncFileUpload1" runat="server" ThrobberID="spanUploading" OnClientUploadError="
I can't get my <ajax:asyncfileupload> working and I don't see why...
Here's the error:
Here's my front-code:
<%@ Page Language="VB" MasterPageFile="~/masterpages/mpSqueletton.master" AutoEventWireup="false" CodeFile="frmAdmGestSocietes.aspx.vb" Inherits="adm_frmAdmGestSocietes" title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" Runat="Server">
document.getElementById("<%= lblStatus.ClientID %>").innerText = args.get_fileName(), "<span style='color:red;'>" + args.get_errorMes
I have an AsyncFilUpload that is used to upload to my site. On the server side I have code that checks the width and height of the image and will only save the image if it is within the limits buit I can't figure out how to get the AsyncFileUpload control to show an error when this happens. Can anyone give me any pointers?
I've done some searching, but am unable to find what I'm after.
I'm using the asyncfileupload control, and have it woking to an extent. I'm able to upload the image to the relevant directory and save it's path to the database.
The problem I'm having is that I am unable to upload a 2nd file once the first has completed without refreshing the page.
Thanks in advance!
Anyone know why RegisterStartupScript won't work in the UploadedComplete event? It used to work just fine, but in version 40412, it doesn't do anything.
I had started another thread called 'AsyncFileUpload Broken??!!??', before I realised what was causing the problem. Now that I have found the culprit, I thought a new thread is needed on this issue alone.
Any thoughts or suggestions would be appreciated
Could someone tell me why the asyncfileupload doesn't work the way it used to, are these controls even tested? The following used to work, but not any more.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %><!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="frm" runat="server"> <asp:ToolkitScriptManager ID="tsm" runat="server" /> <div> <asp:AsyncFileUpload ID="afu" runat="server" OnUploadedComplete="afu_Up
Public Class UploadAFile
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Sub AsyncFileUpload1_UploadedComplete(ByVal sender As Object, ByVal e As AsyncFileUploadEventArgs) Handles AsyncFileUpload1.UploadedComplete
ScriptManager.RegisterClientScriptBlock(Me, Me.[GetType](), "size", "top.$get(""" + uploadResult.ClientID & """).innerHTML = 'Uploaded size: " & AsyncFileUpload1.FileBytes.Length.ToString() & "';", True)
' Uncomment to save to AsyncFileUpload\Uploads folder.
' ASP.NET must have the necessary permissions to write to the file system.
Dim savePath As String = Server.MapPath(Path.GetFileName(AsyncFileUpload1.FileName))
Sub AsyncFileUpload1_UploadedFileError(ByVal sender As Object, ByVal e As AsyncFileUploadEventArgs) Handles AsyncFileUpload1.UploadedFileError
ScriptManager.RegisterClientScriptBlock(Me, Me.[GetType](), "error", "t
I am facing problem using Ajax AsyncFileUpload control in IE7.0 and IE8.0 browsers.
It is working fine in local environment, when you deploy the code in Windows Server 2003 (IIS6.0) with Integrated Windows Authentication mode it is not working properly in IE7.0 and IE8.0 browsers.
I am doing the validation in client side using OnClientUploadStarted, OnClientUploadComplete it is working fine but once click on any other button (server side) getting the error Internet Explorer cannot display the webpage (Diagnose Connection Problem) in IE7.0 and IE8.0 browser. Same thing is working fine in other browsers.