Your Ad Here

Posted By

krisdb on 04/15/08


Tagged

c-sharp


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

umang_nine
vali29


get/set


 / Published in: C#
 

  1. public string [Method]
  2. {
  3. get
  4. {
  5. return FormField.Property;
  6. }
  7. set
  8. {
  9. FormField.Property = value;
  10. }
  11. }
  12.  
  13.  
  14. Meta Tags
  15.  
  16. in master:
  17. <meta name="Description" content="" id="MetaDescription" runat="server" />
  18.  
  19. public string MetaDesc
  20. {
  21. get
  22. {
  23. return MetaDescription.ToString();
  24. }
  25. set
  26. {
  27. MetaDescription.Content = value;
  28. }
  29. }
  30.  
  31.  
  32. in aspx:
  33. <%@ MasterType VirtualPath="~/MasterPages/MasterPage.master" %>
  34.  
  35. in aspx.cs:
  36. Master.MetaDesc = "";

Report this snippet  

You need to login to post a comment.