Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

New AjaxFileUpload Codebehind has empty asp controls

$
0
0

Hello I have the following codebehind for the new AjaxFileUpload

        protected void AjaxFileUpload_Click(object sender, AjaxControlToolkit.AjaxFileUploadEventArgs e)
        {
            int ProID = Convert.ToInt32(ddlProduct.SelectedValue);
            string filename = (HttpContext.Current.Request.PhysicalApplicationPath) + "PropImages\\" + ProID.ToString() + "\\" + e.FileName;
            AjaxFileUpload1.SaveAs(strPath);
         }

It uploads the file fine but ProID is always 0, no matter which product I choose from the ddlProduct dropdownlist. I've tried using other controls including TextBox controls and they are all empty, I can't seem to reference the correct asp control values from the AjaxFileUpload codebehind.

Any suggestions are welcome.

Thanks in advance,

Louis


           


Viewing all articles
Browse latest Browse all 5678

Latest Images

Trending Articles



Latest Images