Can't be done as asp:button is a server side control and not to be
written
to response. If you want to add button programmatically, add the button
control to page control.
-----Original Message-----
From: Dexter [mailto:dextertoh@h...]
Sent: Sunday, March 23, 2003 12:59 PM
To: ASPX_Professional
Subject: [aspx_professional] How to use Response.Write() to display
Button?
first line is ok and can display "hilo". But second line cannot display
button. Anything wrong?
Response.Write("<font>hilo</font>");
Response.Write("<asp:Button runat=3Dserver id=3Dbutton></asp:Button>");