R
REB
If I add this line of code to a drop down list's SelectedIndexChanged event
is there something else I should add to keep things clean?
private void ddlDriver_SelectedIndexChanged(object sender, System.EventArgs
e)
{
btnDelete.Attributes.Add("onclick","return confirm('Are you Sure you want to
delete " + ddlDriver.SelectedItem.ToString() + "?');");
}
If a user deletes 100 drivers will the button have 100 added attributes or
is it just changing a property and modifying it each time?
Should I call
btnDelete.Attributes.Clear();
or is that uneccessary?
is there something else I should add to keep things clean?
private void ddlDriver_SelectedIndexChanged(object sender, System.EventArgs
e)
{
btnDelete.Attributes.Add("onclick","return confirm('Are you Sure you want to
delete " + ddlDriver.SelectedItem.ToString() + "?');");
}
If a user deletes 100 drivers will the button have 100 added attributes or
is it just changing a property and modifying it each time?
Should I call
btnDelete.Attributes.Clear();
or is that uneccessary?