using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class pildivaatamine : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ToodeteHaldus t = new ToodeteHaldus(); Response.ContentType = "image/gif"; string suurus = "mini"; if(Request["suurus"]!=null){ suurus = Request["suurus"]; } Response.BinaryWrite(t.KysiPilt(Request["tooteid"], suurus)); Response.End(); } }