Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int a = Convert.ToInt32(Request.QueryString["id"]);

        if (!IsPostBack)
        {
            dt  = dc.getProductdetailbyid(2, a);
            dt2 = dc.Getproductimage(7, a);
            GridView1.DataSource = dt;
            GridView1.DataBind();
        }
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        a = Convert.ToInt32(Request.QueryString["id"].ToString());

        if (!IsPostBack)
        {
            dt = dc.getProductdetailbyid(2, a);
            ddlCategory.SelectedValue         = dt.Rows[0]["CategoryId"].ToString();
            ProductName.Text                  = dt.Rows[0]["Productname"].ToString();
            sc_contact_form_message.InnerText = dt.Rows[0]["ProductDescription"].ToString();
            Literal1.Text = "<img src=" + dt.Rows[0]["ProductLogo"].ToString() + " height=135px width=135px>";
            dt3           = dc.Getproductimage(7, a);
            for (int i = 1; i < dt3.Rows.Count; i++)
            {
                Literal2.Text += "<img src='" + dt3.Rows[i]["ImageUrl"].ToString() + "' height=135px width=135px><br/>";
            }
        }
    }