A
Andla Rand
Hi,
I would appreciate some directions on how to replace text as server
controls. I'm currently reading text from a database and would like to
build server logic based on specific information retrieved from the
server.
Here is some sample code that I'm currently playing with:
string repl=spn.InnerHtml;
repl=repl.Replace("[button]","<INPUT type=\"button\" id=\"btn\"
value=\"Button\">");
spn.InnerHtml=repl;
As you se the [button] is replaced with a button but if I make this a
server button then the server does not process the information as a
server control and thus the client get the server code.
I would appreciate any help on this.
Regards
Andla
I would appreciate some directions on how to replace text as server
controls. I'm currently reading text from a database and would like to
build server logic based on specific information retrieved from the
server.
Here is some sample code that I'm currently playing with:
string repl=spn.InnerHtml;
repl=repl.Replace("[button]","<INPUT type=\"button\" id=\"btn\"
value=\"Button\">");
spn.InnerHtml=repl;
As you se the [button] is replaced with a button but if I make this a
server button then the server does not process the information as a
server control and thus the client get the server code.
I would appreciate any help on this.
Regards
Andla