Using Saveas() method for Ajax asyncupload using VB.NET
Posted on 2010-08-22
I am having trouble to find a VB.NET tutorial on how to use the SaveAs() method for the Ajax AsyncUpload control.
What I need to do when the upload is complete is:
- I have to either pass a parameter or access a session variable (call the variable "pictype")
- I need to validate what type the file is ("picformat" - ex: GIF or JPG)
- I need to validate the width of the image, and rescale it to no more than 150px wide
- I need to save the image as a new file name which includes the session variable and fileformat (ex: filename = "pic" & session("pictype") & "01" & "." & picformat
I need help with these points in my subroutine.