G
Guest
Hi,
I had an aspx pag in .Net 1.1 with a label on it. As such I had a code
behind page with a declaration for that label.
When I convert to Asp.Net 2.0 the code behind is converted to a partial
class and the declaration for the label is removed. This is what I expected
to happen and I understand why it has happened.
The problem I have is that I had added a custom attribute to my label
declaration which I use to handle localization. e.g.
[Localize]
protected System.Web.UI.WebControls.Label lScreenTitle;
Since that declaration has been removed, so has the custom attribute.
My question is, how do you add a custom attribute to a control on an aspx
page in Asp.Net 2.0 given that you no longer have access to the control's
declaration in the code-behind file?
Thanks,
Julian Jelfs.
I had an aspx pag in .Net 1.1 with a label on it. As such I had a code
behind page with a declaration for that label.
When I convert to Asp.Net 2.0 the code behind is converted to a partial
class and the declaration for the label is removed. This is what I expected
to happen and I understand why it has happened.
The problem I have is that I had added a custom attribute to my label
declaration which I use to handle localization. e.g.
[Localize]
protected System.Web.UI.WebControls.Label lScreenTitle;
Since that declaration has been removed, so has the custom attribute.
My question is, how do you add a custom attribute to a control on an aspx
page in Asp.Net 2.0 given that you no longer have access to the control's
declaration in the code-behind file?
Thanks,
Julian Jelfs.