code_junkie

How do I make my ASP.NET server control take an embedded code block as a property value?

Nov 13th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <cc1:customControl runat="server" Title='<%= PagePropertyValue%>' >
  2. more content
  3. </cc1:customControl>
  4.  
  5. <cc1:customControl runat="server" Title='<%# PagePropertyValue%>' >
  6. more content
  7. </cc1:customControl>
  8.  
  9. <cc1:customControl runat="server" Title='<%# PagePropertyValue %>' >
  10. more content
  11. </cc1:customControl>
  12.  
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. DataBind();
  16. }
  17.  
  18. <cc1:customControl runat="server" Title='<%$ Resouces: ResourceFile, ContentKey %>' >
  19. more content and controls
  20. </cc1:customControl>
Add Comment
Please, Sign In to add comment