[ASP.NET 2.0] Attributes on control declarations

  • Thread starter Emil Christopher Melar
  • Start date
E

Emil Christopher Melar

Hi, I just converted my project to ASP.NET 2.0 using the wizard.

Before, I had attributes on my control declarations:

[OrderEntryField("Number", "NumberType")]
protected System.Web.UI.WebControls.RadioButtonList rblNumberType;

Now they are gone.

How can I add attributes to controls now?


Thanks in advance!
 
E

Emil Christopher Melar

Emil said:
Hi, I just converted my project to ASP.NET 2.0 using the wizard.

Before, I had attributes on my control declarations:

[OrderEntryField("Number", "NumberType")]
protected System.Web.UI.WebControls.RadioButtonList rblNumberType;

Now they are gone.

How can I add attributes to controls now?


Thanks in advance!

I converted the attributes to XML, and load those from my XML
configuration manager that serializes this into an object with an array
if Control IDs that I map up. I also believe it would go faster than
reflection.

Solved!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top