WebFileUpload OnAfterUpload: Modify Label using WebFileUpload.ClientAction

1 reply. Last post: December 23, 2012 10:13 PM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

i use a WebFileUploader like this ..

<ISWebTextEditor:WebFileUploader AllowRemove="False" DefaultButtonWidth="120" AllowAdd="False" Width="600px" Caption="Import-Datei auswählen:" PostbackMode="FlyPostBack" ID="Upload" FilesCount="1" FileTypes="*.csv" runat="server" UploadPath="./Upload" OnAfterUpload="UploadAfterUpload" OnCancelUpload="UploadCancelUpload" OnErrorUpload="UploadErrorUpload" OnUploading="UploadUploading" UploadType="BatchUpload" DefaultButtonHeight="20px" > <FlyPostBackSettings PostControlState="True" PostInputControls="True" PostHiddenFields="True" PostViewState="True"></FlyPostBackSettings> <TextSettings AbortText="Abbrechen" ButtonErrorText="Fehler" ButtonUploadingText="Datei wird hochgeladen ..." ButtonUploadedText="Datei wurde hochgeladen." ButtonStartOverText="Weiter" MessageText="[SuccessCount] Datei(en) wurde erfolgreich hochgeladen, [FailedCount] Datei(en) sind fehlgeschlagen, [AbortCount] Datei(en) wurden abgebrochen." ButtonSelectText="Suchen" ButtonUploadText="Datei hochladen" ButtonRemoveText="Datei entfernen"></TextSettings> <ProgressInformation ShowProgressArea="False" ShowProgressBarForTotal="False" ></ProgressInformation> </ISWebTextEditor:WebFileUploader>

 

In CodeBehind i use

protected void UploadAfterUpload(object sender, ISNet.WebUI.WebTextEditor.WebFileUploaderFileEventArgs e)

{  
   // Example
   Upload.ClientAction.Alert("Test");
}

 

I would like to use the ClientAction from WebFileUploader to modify other controls on same page.
In WebGrid, WebButton this works fine ...

What's wrong ?
Why did Upload.ClientAction.xxxxx didn't work ?

Regards

Jürgen

All times are GMT -5. The time now is 2:14 PM.
Previous Next