/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 3<style type="text/css"> 4 #body label {display: block; float:left; width:150px} 5 #body input {display: block; float:left; } 6</style> 7 8<div id="body"> 9 10<label for="<%=txtNumberOfPosts.ClientID %>">Number of posts</label> 11<asp:TextBox runat="server" ID="txtNumberOfPosts" Width="30" /> 12<asp:CompareValidator runat="Server" ControlToValidate="txtNumberOfPosts" Type="Integer" Operator="DataTypeCheck" ErrorMessage="Please enter a valid number" Display="Dynamic" /> 13<asp:RequiredFieldValidator runat="server" ControlToValidate="txtNumberOfPosts" ErrorMessage="Please enter a valid number" Display="dynamic" /><br /><br /> 14 15<label for="<%=cbShowComments.ClientID %>">Show comments</label> 16<asp:CheckBox runat="Server" ID="cbShowComments" /> 17<br /><br /> 18 19<label for="<%=cbShowRating.ClientID %>">Show rating</label> 20<asp:CheckBox runat="Server" ID="cbShowRating" /> 21 22</div>