Set Text, TextAlign and Font name for a asp:CheckBox (VB.net) : CheckBox « Asp Control « ASP.Net






Set Text, TextAlign and Font name for a asp:CheckBox (VB.net)

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
 
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>CheckBox Controls Sample Page</TITLE>
</HEAD>
<BODY>
<form runat="server">
<Font Face="Tahoma" Size="+1">
<BR><BR>
<asp:CheckBox 
    id="chk1"
    Text="Do you like the color blue?" 
    TextAlign="Left"
    Font-Size="12pt"
    Font-Name="Comic Sans MS"
    runat="server" 
/>
<BR><BR>
<asp:CheckBox 
    id="chk2"
    Checked="True"
    Text="Do you like the color red?" 
    TextAlign="Right"
    Font-Size="12pt"
    Font-Name="Comic Sans MS"
    runat="server" 
/>
</Font>
</Form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.asp:CheckBox: change font and border (VB.net)
2.On asp:CheckBox selection state changed (VB.net)
3.asp:CheckBox: text align (VB.net)
4.Set asp:checkbox checked (VB.net)
5.Watch TextBox, CheckBox and radiobutton auto post back action (C#)
6.Get Check box selection state (C#)
7.On checkbox changed event (C#)
8.Set Text, TextAlign and Font name for a asp:CheckBox (C#)
9.Define function to change Label Font to Italic (C#)
10.CheckBox AutoPostBack (VB.net)