Esempio n. 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["memberID"] == null)
        {
            Response.Redirect("Default.aspx");
            return;
        }

        repeaterItemList.DataSource = ItemDB.getAllItemofMember(MemberDB.getMemberbyID(Request.QueryString["memberID"].ToString()).MemberID);
        repeaterItemList.DataBind();

        rptFeedbackInfo.DataSource = FeedbackDB.getFeedbackFor(MemberDB.getMemberbyID(Request.QueryString["memberID"].ToString()).MemberID);
        rptFeedbackInfo.DataBind();

        List <Member> memInfo = new List <Member>();

        memInfo.Add(MemberDB.getMemberbyID(Request.QueryString["memberID"].ToString()));

        rptMemberInfo.DataSource = memInfo;
        rptMemberInfo.DataBind();
    }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        // check if logged in
        if (Request.QueryString["memberID"] == null)
        {
            Response.Redirect("Default.aspx"); // redirect to default if not logged in
            return;
        }
        // display items listed by member
        repeaterItemList.DataSource = ItemDB.getAllItemofMember(MemberDB.getMemberbyID(Request.QueryString["memberID"].ToString()).MemberID);
        repeaterItemList.DataBind();

        // display feedback by member
        rptFeedbackInfo.DataSource = FeedbackDB.getFeedbackFor(MemberDB.getMemberbyID(Request.QueryString["memberID"].ToString()).MemberID);
        rptFeedbackInfo.DataBind();

        // display memebr information
        List <Member> memInfo = new List <Member>();

        memInfo.Add(MemberDB.getMemberbyID(Request.QueryString["memberID"].ToString()));

        rptMemberInfo.DataSource = memInfo;
        rptMemberInfo.DataBind();
    }