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 pildinaitamine : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Tooteabi t = new Tooteabi(); int id = Convert.ToInt32(Request.QueryString["id"]); //Response.AddHeader("Content-type", "image/gif"); Response.ContentType = "image/gif"; byte[] pilt = t.KysiPilt(id); //if (Request.QueryString.Keys.Count > 1) { if (Request.QueryString["pisi"]!=null) { pilt = t.KysiPisiPilt(id); } Response.BinaryWrite(pilt); Response.End(); } }