i cannot access AsyncFileUpload
protected void AsyncFileUpload1_UploadedComplete1(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
{
User objUser = new User();
string filename = System.IO.Path.GetFileName(AsyncFileUpload1.FileName);
HttpPostedFile pf = AsyncFileUpload1.PostedFile;
System.Drawing.Image img2 = System.Drawing.Image.FromStream(pf.InputStream);
System.Drawing.Image bmp2 = img2.GetThumbnailImage(200, 200, null, IntPtr.Zero);
// Imagename = objUser.UserID + filename;
Imagename = filename;
Imagepath = "D:\\ShopMonkey_WebApp_29062012\\ShopMonkey_WebApp\\ShopMonkey\\Images\\" + Imagename;
bmp2.Save(Path.Combine(@"D:\ShopMonkey_WebApp_29062012\ShopMonkey_WebApp\ShopMonkey\Images\", Imagename));
objUser.UploadImagePath = Imagepath;
objUser.UploadImagename = Imagename;
System.Drawing.Image img1 = System.Drawing.Image.FromFile(Imagepath);
System.Drawing.Image bmp1 = img1.GetThumbnailImage(50, 50, null, IntPtr.Zero);
ThumbNailPath = "D:\\ShopMonkey_WebApp_29062012\\ShopMonkey_WebApp\\ShopMonkey\\ThumbNails\\" + Imagename;
bmp1.Save(Path.Combine(@"D:\ShopMonkey_WebApp_29062012\ShopMonkey_WebApp\ShopMonkey\ThumbNails\", Imagename));
objUser.UploadThumbnailPath = ThumbNailPath;
//Check_Pin(objUser);
Img_Show.ImageUrl = objUser.UploadImagePath;
}
it wont show image...i cannot access able AsyncFileUpload1_UploadedComplete1..it checks the loop and out from that loop..
i already add reference ajax dll in my project..another that have to add any dll???
can u please anyone tel solution for this friend????