示例#1
0
    protected void BtnActive_Click(object sender, EventArgs e)
    {
        try
        {
            GridViewRow gvRow  = (GridViewRow)(sender as Control).Parent.Parent;
            Label       id     = (Label)gvRow.FindControl("lblId");
            Label       active = (Label)gvRow.FindControl("lblActive");

            bool act = true;
            if (active.Text == "Active")
            {
                //status = "Inactive";
                act = false;
            }
            else
            {
                //status = "Active";
                act = true;
            }
            local_wallet.UpdateProductReview(act, id.Text);
            BindRegistrationDetails();
        }
        catch
        { }
    }