A
ad
Hi,
If a control in in web form, I can set the Attributes in Page_load event,
like:
Button1.Attributes["onclick"] = "return confirm('Are you sure?');";
But If the cotrol is in a DataGrid's template, if I use the same code
above, it will fail when compile (can't find MyButtonInTemplte)
How can I set thee attribute of a control in temple by code (not in the
..aspx)?
If a control in in web form, I can set the Attributes in Page_load event,
like:
Button1.Attributes["onclick"] = "return confirm('Are you sure?');";
But If the cotrol is in a DataGrid's template, if I use the same code
above, it will fail when compile (can't find MyButtonInTemplte)
How can I set thee attribute of a control in temple by code (not in the
..aspx)?