SharePoint Styling Common Controls


/ Published in: ASP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
  2. <%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
  3. <%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
  4.  
  5. <table border="0" width="100%" cellspacing="0" cellpadding="0" class="ms-descriptiontext">
  6. <wssuc:InputFormSection runat="server"
  7. id="UniqueID"
  8. Title="Left Side Title"
  9. Description="Displays below Title">
  10. <Template_InputFormControls>
  11. <wssuc:InputFormControl LabelText="Name:" runat="server">
  12. <Template_Control>
  13. <table class="ms-authoringcontrols" width="100%">
  14. <tr>
  15. <td nowrap width="50%">
  16. <asp:DropDownList ID="ControlID" runat="server" />
  17. </td>
  18. </tr>
  19. </table>
  20. </Template_Control>
  21. </wssuc:InputFormControl>
  22. </Template_InputFormControls>
  23. </wssuc:InputFormSection>
  24. </table>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.