コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int          accountid  = int.Parse(Request.QueryString["ID"]);
            DBConnect    objDB      = new DBConnect();
            dbProcedures procedure  = new dbProcedures();
            DataSet      portImages = procedure.getprotimages(accountid);

            portImages.Tables[0].Columns.Add("imgFile");
            for (int i = 0; i < portImages.Tables[0].Rows.Count; i++)
            {
                portImages.Tables[0].Rows[i]["imgFile"] = "PortImagesGrab.aspx?ID=" + accountid + "&imgID=" + portImages.Tables[0].Rows[i]["porfolio_ImageID"];


                rptImages.DataSource = portImages;
                rptImages.DataBind();

                DataSet info = procedure.getArtistInfo(accountid);
                lblName.Text        = info.Tables[0].Rows[0]["Artist_FirstName"].ToString() + info.Tables[0].Rows[0]["Artist_LastName"].ToString();
                lblEmail.Text       = info.Tables[0].Rows[0]["Email"].ToString();
                lblPhone.Text       = info.Tables[0].Rows[0]["PhoneNumber"].ToString();
                lblLocation.Text    = info.Tables[0].Rows[0]["City"].ToString() + ", " + info.Tables[0].Rows[0]["Artist_State"].ToString();
                lblRating.Text      = info.Tables[0].Rows[0]["Rating"].ToString() + " Stars";
                lblCompany.Text     = info.Tables[0].Rows[0]["Company"].ToString();
                imgprofile.ImageUrl = "profileImageGrab.aspx?ID=" + accountid;
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["ID"] != null)
            {
                int     accountid  = int.Parse(Request.QueryString["ID"]);
                DataSet artistData = procedure.getArtistInfo(accountid);

                lblPrintFName.Text    = artistData.Tables[0].Rows[0]["Artist_FirstName"].ToString();
                lblPrintLName.Text    = artistData.Tables[0].Rows[0]["Artist_LastName"].ToString();
                lblPrintEmail.Text    = artistData.Tables[0].Rows[0]["Email"].ToString();
                lblPrintPhone.Text    = artistData.Tables[0].Rows[0]["PhoneNumber"].ToString();
                lblPrintLocation.Text = artistData.Tables[0].Rows[0]["City"].ToString() + " ," + artistData.Tables[0].Rows[0]["Artist_State"].ToString();
                lblPrintCompany.Text  = artistData.Tables[0].Rows[0]["Company"].ToString();
            }
            else
            {
                Response.Write("<script>alert('Invalid page request. Please go to inkmap.com to get started.')</script>");
            }
        }