asp.net server controls and FileReceived Question

Nov 11, 2009 at 7:46 AM
Edited Nov 11, 2009 at 8:27 AM
Hi ~!!!
Question

hm..

I''m not speak English ~~~ Sorry T^T

!! Program Code !!

- ASPX page -
<fjx : FileUploader  ID ="FileUploader1" runat ="server" 
                            RequestAsPostBack ="true"
                            OnFileReceived ="FileReceived" 
                            JsFunc_FileStateChanged ="FileStateChanged" 
                            IsSingleFileMode ="true" 
     <Adapters> 
         <fjx : FileSaverAdapter runat ="server" FolderName=".. /dataroom /file/mV" = OnFileNameDetermining"FileNameDetermining" / " 
     </Adapters> 
 </ fjx : FileUploader>
<asp:Label ID="Label" runat="server" Text="">
 
- CS PAGE -
 FileReceived (object sender, FileReceivedEventArgs args)
(
	Label.Text = args.File.FileName; // error  ~ Label.Text Value = NULL   // WHAT? ? WHY ? ? ? HELP ~ ME!!

)
FileNameDetermining (object sender, FileNameDeterminingEventArgs args)
(

       string date = DateTime.Now.ToString ("yyMMdd_HHmm_ss");
args.FileName = Server.MapPath ("~ /dataroom /file/mV/" + date + ". wmv");


)
 
 
Q2.
<script type="text/javascript">
    function FileStateChanged(uploader, file, httpStatus, isLast) {
        Flajaxian.fileStateChanged(uploader, file, httpStatus, isLast);
        var t = Flajaxian.$("MyDiv");

        if (file.state > Flajaxian.File_Uploading) {
        t.innerHTML = "";
        t.innerHTML += "BYTE: <b>" + file.bytes + "</b> Kbyte " + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FILENAME: <b>" + Label.Text // how?? + "</b>" + "</br>";
        }
    }
</script>
 
please rep~!!

 
 
 
 
 
Coordinator
Nov 11, 2009 at 10:14 AM

Hi Tomato1948,

It seems you have problems understanding what is AJAX call. Google AJAX and go through a tutorial or two.