public void ProcessRequest(HttpContext context) { Guid id = Guid.Parse( context.Request.QueryString["id"]); Profile_BLL p = new Profile_BLL(context.Server); calendar_profile n = (p.get(id)).extendProfile; //// Response.BinaryWrite(n.img); // context.Response.ContentType = "image/png"; context.Response.BinaryWrite(n.img); }
public void ProcessRequest(HttpContext context) { Profile_BLL p = new Profile_BLL(context.Server); calendar_profile n = p.get((Guid)Membership.GetUser().ProviderUserKey); // Response.BinaryWrite(n.img); context.Response.ContentType = "image/bmp"; context.Response.OutputStream.Write(n.img, 78, n.img.Length - 78); }
protected void Page_Load(object sender, EventArgs e) { p = new Profile_BLL(Server); Profile_Wraper pw = p.get((Guid)Membership.GetUser().ProviderUserKey); Image1.ImageUrl = "../handler1.ashx?id=" + pw.Id; if (!IsPostBack) { email.Text = pw.Email; sex.Text = pw.extendProfile.sex; name.Text = pw.extendProfile.name; dislike.Text = pw.extendProfile.Dislike; favor.Text = pw.extendProfile.Favorate; } }
protected void Page_Load(object sender, EventArgs e) { if (Membership.GetUser() != null) { profile_context = new Profile_BLL(Server); Profile_Wraper profilewrap = profile_context.get((Guid) Membership.GetUser().ProviderUserKey); ((System.Web.UI.WebControls.Image)this.loginview.FindControl("userimg")).ImageUrl = "../handler1.ashx?id=" + profilewrap.Id; if (profilewrap.extendProfile.name != null) ((Label)this.loginview.FindControl("name")).Text = profilewrap.extendProfile.name; if (profilewrap.extendProfile.sex != null) ((Label)this.loginview.FindControl("sex")).Text = profilewrap.extendProfile.sex; if (profilewrap.Email != null) ((Label)this.loginview.FindControl("email")).Text = profilewrap.Email; if (profilewrap.extendProfile.Favorate != null) ((Label)this.loginview.FindControl("favor")).Text = profilewrap.extendProfile.Favorate; if (profilewrap.extendProfile.Dislike != null) ((Label)this.loginview.FindControl("dislike")).Text = profilewrap.extendProfile.Dislike; if (IsPostBack) { ((Panel)this.loginview.FindControl("container")).Visible = (Boolean)ViewState["cont_visible"]; // ((Wall)this.loginview.FindControl("Wall1")).Owner = (Guid)Membership.GetUser().ProviderUserKey; } else { ViewState["cont_visible"] = false; ViewState["selected"] = false; Cache["CalendarEvent"] = calendarContext.getEventByUserId((Guid)Membership.GetUser().ProviderUserKey); } // if (Membership.GetUser() != null) setwall(); } }
protected void Page_Load(object sender, EventArgs e) { ((System.Web.UI.WebControls.Image)this.loginview.FindControl("userimg")).ImageUrl = "../handler1.ashx?id=" + (Guid)Session["selectedfriend_id"]; if (!IsPostBack) { profile_context = new Profile_BLL(Server); Profile_Wraper profilewrap = profile_context.get((Guid)Session["selectedfriend_id"]); ((System.Web.UI.WebControls.Image)this.loginview.FindControl("userimg")).ImageUrl = "../handler1.ashx?id=" + profilewrap.Id; if (profilewrap.extendProfile.name != null) ((Label)this.loginview.FindControl("name")).Text = profilewrap.extendProfile.name; if (profilewrap.extendProfile.sex != null) ((Label)this.loginview.FindControl("sex")).Text = profilewrap.extendProfile.sex; if (profilewrap.Email != null) ((Label)this.loginview.FindControl("email")).Text = profilewrap.Email; if (profilewrap.extendProfile.Favorate != null) ((Label)this.loginview.FindControl("favor")).Text = profilewrap.extendProfile.Favorate; if (profilewrap.extendProfile.Dislike != null) ((Label)this.loginview.FindControl("dislike")).Text = profilewrap.extendProfile.Dislike; ViewState["cont_visible"] = false; Cache["CalendarEvent2"] = calendarcontext.getEventByUserId((Guid)Session["selectedfriend_id"]); } //if (((Calendar)loginview.FindControl("mycalendar")).SelectedDate != null) // mycalsel(); setwall(); }