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