passing parameter value between methods
Revision 3
i have ajaxfileupload control , i want to insert the image to the database ,
but i want to insert it throw button , not from the upload complete event ,
so i make the button but there isn't filename property !
any help ?
____
protected void fileUploader_UploadComplete(object sender, AjaxFileUploadEventArgs file)
{
if (file.ContentType.Contains("jpg") || file.ContentType.Contains("gif")
|| file.ContentType.Contains("png") || file.ContentType.Contains("jpeg"))
{
Session["fileContentType_" + file.FileId] = file.ContentType;
Session["fileContents_" + file.FileId] = file.GetContents();
}
file.PostedUrl = string.Format("?preview=1&fileId={0}", file.FileId);
}
and
protected void btnInsert_Click(object sender, EventArgs e)
{
}
Posted 28-Dec-12 12:35pm
by
Ahmad Abd-Elghany.