Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: How to use Response.Write() to display Button?


Message #1 by "Dexter" <dextertoh@h...> on Sun, 23 Mar 2003 04:58:31
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>");

  Return to Index