output data question

  • Thread starter Thread starter pei_world
  • Start date Start date
P

pei_world

how can I write out data whereever I want it, like asp and php?
otherwise, asp.net is really not convenience.
 
Use a PlaceHolder control, then add your html content to the place holder.

ie

PlaceHolder ph;
ph.Controls.Add( new LiteralControl( "your html to render" ) );

It will render out properly. However you won't have any of the benefits of
ViewState, server controls, and postback processing.

bill
 
Back
Top