.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> ASP.NET Controls >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

CheckBox: change font and border

Posted By:santhiyagu       Posted Date: April 28, 2011    Points: 40    Category: ASP.NET Controls    URL: http://www.dotnetspark.com  

HTML tag for CheckBox: change font and border in asp.net
 

<%@ Page Language=VB Debug=true %>

Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)

End Sub
Sub SubmitBtn_Click(Sender As Object, E As EventArgs)
    If chkMailingList.Checked = "True" Then 
        Response.Write ("_
            & Chr(13"<" "/" "SCRIPT>")
    End If
    If chkContact.Checked = "True" Then 
        Response.Write ("_
            & Chr(13"<" "/" "SCRIPT>")
    End If    
End Sub
SCRIPT>
<HTML>

Displaying a Basic CheckBox Control

<form runat="server">




    id="chkMailingList"
    text="Would you like to be on our mailing list?"
    checked="true"
    backcolor="LightYellow"
    bordercolor="DarkRed"
    borderwidth=3
    font-size="12pt"
    font-name="Comic Sans MS"
    textalign="Left"
    runat="server" 
/>




    id="chkContact"
    text="Would you like us to contact you by phone?"
    checked="false"
    backcolor="LightYellow"
    bordercolor="DarkRed"
    borderwidth=3
    font-size="12pt"
    font-name="Comic Sans MS"
    textalign="Right"
    runat="server" 
/>




    id="butOK"
    text="OK"
    Type="Submit"
    OnClick="SubmitBtn_Click" 
    runat="server"
/>
form>
BODY>
HTML>
           


     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend