Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jul 02, 2012 07:54 AM by Song-Tian - MSFT
Member
73 Points
346 Posts
Jun 29, 2012 11:51 AM|LINK
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????
All-Star
66609 Points
11270 Posts
Jul 02, 2012 03:33 AM|LINK
Refer this
http://forums.asp.net/t/1793075.aspx/1
http://forums.asp.net/t/1593049.aspx/1
http://forums.asp.net/t/1479689.aspx/1
43715 Points
4304 Posts
Microsoft
Jul 02, 2012 07:54 AM|LINK
Hi,
Just refer to the example at: http://forums.asp.net/p/1603720/4091630.aspx#4091630.
girikas
Member
73 Points
346 Posts
cannot able to access AsyncFileUpload1_UploadedComplete1..why???
Jun 29, 2012 11:51 AM|LINK
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????
chetan.sarod...
All-Star
66609 Points
11270 Posts
Re: cannot able to access AsyncFileUpload1_UploadedComplete1..why???
Jul 02, 2012 03:33 AM|LINK
Refer this
http://forums.asp.net/t/1793075.aspx/1
http://forums.asp.net/t/1593049.aspx/1
http://forums.asp.net/t/1479689.aspx/1
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
Song-Tian - ...
All-Star
43715 Points
4304 Posts
Microsoft
Re: cannot able to access AsyncFileUpload1_UploadedComplete1..why???
Jul 02, 2012 07:54 AM|LINK
Hi,
Just refer to the example at: http://forums.asp.net/p/1603720/4091630.aspx#4091630.
Feedback to us
Develop and promote your apps in Windows Store