c# - Can I use a UserControl to reuse a DropDownExtender despite having page-specific parameters? -
in application, have large number of pages repeat similar grids, , every single 1 going have 'dropdownextender' ajax control in leftmost column, contain many links other pages row.
now, i'd avoid code repetition having dropdownextender user control. however, 1 crucial aspect of control contain hidden fields/values links relating specific row - example, have
<asp:hiddenfield id="hdnid" runat="server" value='<%# bind("id")' />
i'm assuming not work - how pass on values user control in efficient manner?
if have public property in user control can set either in code or in markup, doing hidden field above.
you may need:
[bindable(bindablesupport.yes)]
if need data-binding support.
Comments
Post a Comment