Re: Help Needed in Placing Uploader in a Update Panel

  •  01-07-2009, 11:25 AM

    Re: Help Needed in Placing Uploader in a Update Panel

    hi,
     
    thanks for your reply.
     
    everything is working fine except that during file upload, if i press cascading drop down list on the form it results in postback which cancels the uploading process.
     
    so i need to disable the drop down list during file uploading time only and enable it after file upload is done.
     
    i want to implement the functions like function CuteWebUI_AjaxUploader_OnStart() or function CuteWebUI_AjaxUploader_OnStop() in code behind page.
     
    My Updated code in code behind page is :-
     
    protected override void OnInit(EventArgs e)
    {

    base
    .OnInit(e);
    SampleUtil
    .SetPageCache();
    PersistedFile1.InsertButton.ValidationGroup = "NoNeed";
    PersistedFile1.FileChanged += new PersistedFileEventHandler(PersistedFile_FileUploaded);
    LinkButton1.Click +=
    new EventHandler(LinkButton1_Click);
    }

     
    protected void PersistedFile_FileUploaded(object sender, PersistedFileEventArgs args)
    {
    LinkButton1.Enabled = true;
    }
     
    how and where can i call functions like ( function CuteWebUI_AjaxUploader_OnStart() or function CuteWebUI_AjaxUploader_OnStop()) in my code behind pages.
     
    In simple words, how and where in my code, can i place and call these functions to disable the drop down list on form using
    (dropdownlist1.enabled = false;) during the file upload process only.
     
    Thanks.
View Complete Thread