|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
dynamically set property on a controlHi
say I have a literal on an ascx: <asp:Literal id="myLabel" runat="server" Text="literal text" /> How do I change the text value to a "dynamic" value? I would like to be able to do something like: <asp:Literal id="myLabel" runat="server" Text="<%= myName %>" /> where myName is a string defined elsewhere. The only way I know of doing this is by setting the text value in the code behind, but is it possible to do it in the ascx? thanks, Peter
label overlap during design
Dynamic gridview values lost on postback button problem Menu Wrap Problem FormView and HTMLEncode asp:hyperlinkfield format dinamically-created checkbox doesn't load it's state GridView edit mode problem Doubts in maintaining Session Variables Plz help Dirty property value persist problem |
|||||||||||||||||||||||