Awesome ASP.net Web-Forms Controls
Form inputs demo
Checkbox
Ochk checkbox mod in this demo is set globally in Application_Start so we are turning it off using Ochk(false) to show the basic checkbox
FormInput.aspx
<div class="efield"> <label><% Chk1.CheckBox().Ochk(false).Value(true); %> <awe:Ocon runat="server" ID="Chk1" /> <span class="o-con">Checkbox</span></label> </div> <div class="efield"> <label><% Chk2.CheckBox().Ochk(false).Enabled(false).Value(true); %> <awe:Ocon runat="server" ID="Chk2" /> <span class="o-con">Disabled</span></label> </div>
Ochk
FormInput.aspx
<div class="efield"> <label><% Chk3.CheckBox().Value(true); %> <awe:Ocon runat="server" ID="Chk3" /> <span class="o-con">Checkbox</span></label> </div> <div class="efield"> <label><% Chk4.CheckBox().Enabled(false).Value(true); %> <awe:Ocon runat="server" ID="Chk4" /> <span class="o-con">Disabled</span></label> </div> <div class="efield"> <label><% Chk5.CheckBox().Enabled(false); %> <awe:Ocon runat="server" ID="Chk5" /> <span class="o-con">Disabled</span></label> </div>
Otoggl
with width, yes and no set
FormInput.aspx
<div class="efield"> <label><% Chk6.CheckBox().Otoggl().Value(true); %> <awe:Ocon runat="server" ID="Chk6" /> <span class="o-con">Checkbox</span></label> </div> <div class="efield"> <label><% Chk7.CheckBox().Otoggl().Enabled(false).Value(true); %> <awe:Ocon runat="server" ID="Chk7" /> <span class="o-con">Disabled</span></label> </div> <div class="efield"> <label><% Chk8.CheckBox().Otoggl().Enabled(false); %> <awe:Ocon runat="server" ID="Chk8" /> <span class="o-con">Disabled</span></label> </div> <div class="efield"> <label> <% Chk9.CheckBox().Otoggl(o => o.Width("7em").Yes("Enabled").No("Disabled")).Value(true); %> <awe:Ocon runat="server" ID="Chk9" /> <span class="o-con">with width, yes and no set</span> </label> </div>
Button
button
disabled
FormInput.aspx
<% Button1.Button().Text("button"); %> <awe:Ocon runat="server" ID="Button1" /> <% Button2.Button().Text("disabled").HtmlAttributes(new {disabled = "disabled"}); %> <awe:Ocon runat="server" ID="Button2" />
Comments