code_junkie

Set ContentPlaceHolder data through code ASP.NET

Nov 11th, 2011
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. dim oCPH as new ContentPlaceHolder
  2. oCPH.id = "column1" 'this id is the one that corresponds with the ID I set on the page
  3. oCPH.content = "content here" '<-- not real code
  4.  
  5. ContentPlaceHolder cph = (ContentPlaceHolder)Master.FindControl("column1");
Add Comment
Please, Sign In to add comment