asp:ButtonColumn remove button not work
i've found out that only LinkButton works not PushButton, can anyone explain it?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
pjwingoldPosted Jan 19, 2004, 7:15 PM
private void InitializeComponent()
{
this.add.Click += new System.EventHandler(this.Add_Click);
this.OrderList.DeleteCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.OrderList_Delete);
this.checkout.Click += new System.EventHandler(this.checkout_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
private void OrderList_Delete(Object sender, DataGridCommandEventArgs e)
{
cart = (ShoppingCart) Session["Cart"];
if (cart.Orders.Count > 0)
{
cart.Remove(e.Item.Cells[0].Text);
LoadData();
}
if (cart.Orders.Count == 0)
{
msgLabel.Text = "Nothing in cart";
checkout.Visible = false;
OrderList.Visible = false;
}
}if i change to push button, it will not work any moreTanvir HudaPosted Jan 14, 2004, 1:50 AM