c# - id not attaching to custom control -
hey having problem attaching id custom control. i'll state i've tried first , if there's out there can shed light on why element isn't appearing on dom id attached awesome.
i've added inheritance
public class barbutton : control
i've attached button.(100% right button)
<cc2:barbutton id="btndeleterow" buttontype="deleterow"></cc2:barbutton>
attached in designer
protected global::scncontrols.barbutton btndeleterow;
anyways after have function delete button based on it's id using jquery. problem occurs when load page button has no id.
var btndeleterow = <%= btndeleterow.clientid%>;
^^^^this returns null value.
anyways little light if @ possible appreciated. i've checked elements on page see being rendered , it's normal barbutton no id attached. again.
Comments
Post a Comment