/BlogEngine/BlogEngine.NET/widgets/RecentPosts/edit.ascx

# · ASP.NET · 22 lines · 16 code · 6 blank · 0 comment · 0 complexity · 42b5c1d10e81dc54cb8bbc7e1509142d MD5 · raw file

  1. <%@ Control Language="C#" AutoEventWireup="true" CodeFile="edit.ascx.cs" Inherits="Widgets.RecentPosts.Edit" %>
  2. <style type="text/css">
  3. #body label {display: block; float:left; width:150px}
  4. #body input {display: block; float:left; }
  5. </style>
  6. <div id="body">
  7. <label for="<%=txtNumberOfPosts.ClientID %>">Number of posts</label>
  8. <asp:TextBox runat="server" ID="txtNumberOfPosts" Width="30" />
  9. <asp:CompareValidator runat="Server" ControlToValidate="txtNumberOfPosts" Type="Integer" Operator="DataTypeCheck" ErrorMessage="Please enter a valid number" Display="Dynamic" />
  10. <asp:RequiredFieldValidator runat="server" ControlToValidate="txtNumberOfPosts" ErrorMessage="Please enter a valid number" Display="dynamic" /><br /><br />
  11. <label for="<%=cbShowComments.ClientID %>">Show comments</label>
  12. <asp:CheckBox runat="Server" ID="cbShowComments" />
  13. <br /><br />
  14. <label for="<%=cbShowRating.ClientID %>">Show rating</label>
  15. <asp:CheckBox runat="Server" ID="cbShowRating" />
  16. </div>