..


Sponsored Links

CheckBox

The family of the CheckBox Web Server Control ASP.NET creates multiple radio buttons managed by the server side. NET Framework.

Let's see the list of properties of the CheckBox:

  • AutoPostBack - Boolean, indicating whether the form with the values ​​of the CheckBox has been sent or not.
  • Checked - Boolean, specifies whether an item should be selected by default or not.
  • Text - text to set the CheckBox.
Runat attribute is always applied (set to "server") to allow. NET Framework to recognize it as a server-side object.

Let's see a simple example:





 <form runat="server">



    



 <asp:CheckBox id="hobby_lettura" Text="Lettura" runat="server" />



    



 <asp:CheckBox id="hobby_cinema" Text="Cinema" runat="server" />



    



 <asp:CheckBox id="hobby_sport" Text="Sport" Checked="True" runat="server" />







 </ Form>



Is selected by default the "Sports".

In the same category ...
E-Learning
ASP (Advanced) ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €.
ASP.NET (Course) ASP.NET (Course)
Full course for building Web applications from 49 €.
SQL and Database (Course) SQL and Database (Course)
Create and manage relational databases. From 39 €.
Sponsored Links