P
pbd22
Hi.
How do I add the runat=server attribute on a buttonfield link
dynamically?
thanks!
How do I add the runat=server attribute on a buttonfield link
dynamically?
thanks!
It would be easier if it was already a server side control but then it would
be not necessary as it would be already a server side control ;-)
More seriously why can't you set this attribute once for all ? Just use the
runat="server" attribute? It doesn't mean you have actually to do something
with it. Use it or not as will.It should arm having this if this is not
needed.
You may want to explain what you are trying to do as you seems to have an
unusual scenario (this is just a guess but if you render directly HTML
markup, you could also create a server control dynamically instead and let
the server control render the HTML markup rather than creating "by hand" the
markup that you would like to turn into an HTML server control).
It would be easier if it was already a server side control but then it
would
be not necessary as it would be already a server side control ;-)
More seriously why can't you set this attribute once for all ? Just use
the
runat="server" attribute? It doesn't mean you have actually to do
something
with it. Use it or not as will.It should arm having this if this is not
needed.
You may want to explain what you are trying to do as you seems to have an
unusual scenario (this is just a guess but if you render directly HTML
markup, you could also create a server control dynamically instead and let
the server control render the HTML markup rather than creating "by hand"
the
markup that you would like to turn into an HTML server control).