Ejemplo n.º 1
0
        protected void Product_Detail_Button_Command(object sender, CommandEventArgs e)
        {
            MySqlConnection dbconn = new MySqlConnection(CommonClass.connectionstring);

            dbconn.Open();
            ProductDetailControl1.Refresh_Product_Details(dbconn,
                                                          e.CommandArgument.ToString());

            dbconn.Close();
            MultiView1.SetActiveView(Product_Detail_View);
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Request.QueryString["Product_Id"] != null)
         {
             MySqlConnection dbconn = new MySqlConnection(CommonClass.connectionstring);
             dbconn.Open();
             ProductDetailControl1.Refresh_Product_Details(dbconn,
                                                           Request.QueryString["Product_Id"].ToString());
             dbconn.Close();
         }
     }
 }