Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Web >> Development >> ASP.Net >> HTML Controls >> How to use InputRadiobutton

ASP.Net::Fundamentals::HTML Controls::InputRadiobutton <script runat="server"> Sub submit(Source As Object, e As EventArgs) if r1.Checked=True then p1.InnerHtml="Your favorite color is red" else if r2.Checked=True then p1.InnerHtml="Your favorite color is green" else if r3.Checked=True then p1.InnerHtml="Your favorite color is blue" end if end if end if End Sub </script> <body> <form runat="server"> <p>Select your favorite color: <br /> <input id="r1" name="col" type="radio" runat="server">Red</input> <br /> <input id="r2" name="col" type="radio" runat="server">Green</input> <br /> <input id="r3" name="col" type="radio" runat="server">Blue</input> <br /> <input type="button" value="Submit" OnServerClick="submit" runat="server"/> <p id="p1" runat="server" /> </form> </body> </html>
[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]