dear alls,
i have a database query, i want the user to upload his pic
(using html file input control) but i want to restrict them to 200 by
200 pixels dimensions.
my code is working alright just want this additional ability.
ProductLargeImage is html input file control.
ProductID is primary key in database
----------------
private void Button1_Click(object sender, System.EventArgs e)
{
if (ProductLargeImage.PostedFile.ContentLength > 0)
{
ProductLargeImage.PostedFile.SaveAs(Request.Server Variables["APPL_PHYSICAL_PATH"]
+ ConfigurationSettings.AppSettings["LargeImagePath"] + "/pimg_" +
ProductID );
}
}
------------------------