P
Paul Custance
Trying to get a button within a datalist to fire an event. However on
the coding I'm not sure how to link to the button within the datalist.
My data list is called dlorders and the button is called btnEdit and
carries a commandname edit. which then should fire code to open up 2
other buttons, cancel and update.
The label1.text is just test to see if code is firing which it aint!
public void dlOrders_Edit(object
Source,System.Web.UI.WebControls.DataListCommandEventArgs e)
{
//Turn on editing controls
dlOrders.EditItemIndex = e.Item.ItemIndex;
//Re-bind the data
sqlDataAdapter1.Fill(dsOrders1,"Orders");
DataBind();
Label1.Text = "Done";
}
have a created it right?
thanks
Paul Custance
the coding I'm not sure how to link to the button within the datalist.
My data list is called dlorders and the button is called btnEdit and
carries a commandname edit. which then should fire code to open up 2
other buttons, cancel and update.
The label1.text is just test to see if code is firing which it aint!
public void dlOrders_Edit(object
Source,System.Web.UI.WebControls.DataListCommandEventArgs e)
{
//Turn on editing controls
dlOrders.EditItemIndex = e.Item.ItemIndex;
//Re-bind the data
sqlDataAdapter1.Fill(dsOrders1,"Orders");
DataBind();
Label1.Text = "Done";
}
have a created it right?
thanks
Paul Custance