Any way to set attributes for server controls by referencing properties/methods/variables?
- From: paul.hester@xxxxxxxxx
- Date: 5 Dec 2006 18:26:41 -0800
Hi all,
I'm trying to find a declarative way to set server control attributes
using the attribute="<%= SomeValue %>" syntax.
This works fine for basic HTML controls, but server controls will
literally display the contained text, but won't execute the containing
code.
It works fine if I use the attribute="<%# SomeValue %>" syntax and
calling DataBind() in the code behind, but this feels really ugly.
Other than just setting the attribute in the code behind, is there a
better way to do this?
Any help would be appreciated.
Thanks,
Paul
.
- Prev by Date: Property Array in Custom Web Control
- Next by Date: Usercontrol, add styles via Page.Header.Attributes ?
- Previous by thread: Property Array in Custom Web Control
- Next by thread: Usercontrol, add styles via Page.Header.Attributes ?
- Index(es):
Relevant Pages
|
Loading