Search Search

#1 worldwide
FREE Coding Lessons

since 1996
   THE BEST WAY to learn ASP & Asp.net!
Advertise Here!
click for details
Credits Host:
DiscountASP.net
Server Admin:
The "Team"
Contact Info.
Charles M. Carroll
<Asp.net blog>
<personal site>
[prev. Lesson]  Master Pages (many content regions) FREE, works in 1.0/1.1
     [next Lesson]  Server Control: IE WebControls by Microsoft

Rounded Corners Server Control

This great control Scott Mitchell can be downloaded and read about here Here is a demo of the control in action
   filename=/experiments/roundedcorners/test1.aspx

<Test Script Below>


<%@ Register TagPrefix="cc1" Namespace="PrettyUI" Assembly="PrettyUI" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<body>
<form runat="server">
<h2>RoundedCorners Web control by Scott Mitchell</h2>
download from <a href="http://url123.com/ekx8g ">here</a><br><br>

    <table><tr><td>
    <cc1:roundedcorners runat="server"
        ImageDirectory="/experiments/data/rc/"
        BorderStyle="Solid" BorderWidth="2px" BorderColor="#CCE6FF"
        Width="130px" CornerHeight="6px">
        <font face="Verdana" size="2"><a href="http://url123.com/d4u2r">Charles Carroll<br>Amazon Wish List</a></font>
    </cc1:roundedcorners>
    </td></tr></table>


    <table><tr><td>
    <cc1:roundedcorners runat="server"
        ImageDirectory="/experiments/data/rc/"
        BorderStyle="Solid" BorderWidth="4px" BorderColor="red"
        Width="390px" CornerHeight="6px">
        <font face="Verdana" size="2"><a href="http://url123.com/d4u2r">Charles Carroll Amazon Wish List</a></font>
    </cc1:roundedcorners>
    </td></tr></table>


    <table><tr><td>
    <cc1:roundedcorners id="RoundedCorners4" runat="server" CornerHeight="20px"
         BackColor="lightblue" BorderColor="navy" BorderStyle="Solid" BorderWidth="6px" Font-Names="Arial"
         ImageDirectory="/experiments/data/rc/" Padding="3px" TextHorizontalAlign="Center">

        This is another example <b>without</b> a specifically set width. Notice that table flows here nicely.
        The <code>BorderWidth</code> is six pixels.
    </cc1:roundedcorners>  
    </td></tr></table>


    <table><tr><td>
    <cc1:roundedcorners runat="server"
        ImageDirectory="/experiments/data/rc/"
        ShowTitle="True" title="New Tool! &nbsp;&nbsp;&nbsp;&nbsp;Thanks to Alan Cooper for the idea!" 
        TitleStyle-BackColor="lightblue"    BackColor="blue" BorderColor="Black"
        BorderStyle="Solid" BorderWidth="2px" 
        Font-Names="Arial Narrow" Font-Size="12px" Width="540px" Padding="5px" 
        HorizontalAlign="Right" TextHorizontalAlign="Center" align="left"
        CornerHeight="30px" BackgroundBackColor="White" >
        <font size="+1"  face="Arial Black" color="white"><= Use the left dropdown to find topical links from our sites and others</font>
    </cc1:roundedcorners>
    </td></tr></table>


<table>
    <tr>
    <td>
    <table><tr><td>
        <cc1:roundedcorners id="RoundedCorners1" runat="server" BackgroundBackColor="white"
             BackColor="#FFE0C0" BorderColor="Black" BorderStyle="Solid" 
             BorderWidth="2px" Font-Names="Verdana"
             ImageDirectory="/experiments/data/rc/" Font-Size="12px" 
             Width="150px" Padding="1px" CornerHeight="16px" TextHorizontalAlign="Center">

            This is a simple example with text in the rounded corners box. It has a width
            explicitly set to 150 pixels, and the images are anti-aliased.
        </cc1:roundedcorners>
        </td></tr></table>
    <td>

    <table><tr><td>
    <cc1:roundedcorners runat="server"
        ImageDirectory="/experiments/data/rc/"
        ShowTitle="True" title="Test"  TitleStyle-BackColor="#C0C0FF"
        BackColor="#FFE0C0" BorderColor="Black"
        BorderStyle="Solid" BorderWidth="1px" 
        Font-Names="Verdana" Font-Size="11px" Width="200px" Padding="10px" 
        HorizontalAlign="Right" TextHorizontalAlign="Center" align="left"
        CornerHeight="30px" BackgroundBackColor="White" >
        Just Remember about Error Trapping: DEEEP
    </cc1:roundedcorners>
    </td></tr></table>


    <table><tr><td>
    <a href="/freebook/learn">
    <cc1:roundedcorners runat="server"
        ImageDirectory="/experiments/data/rc/"
        ShowTitle="True" title="by Charles Carroll" 
        TitleStyle-BackColor="#CCE6FF"    BackColor="#FFE6FF" BorderColor="Black"
        BorderStyle="Solid" BorderWidth="1px" 
        Font-Names="Verdana" Font-Size="16px" Width="200px" Padding="10px" 
        HorizontalAlign="Right" TextHorizontalAlign="Center" align="left"
        CornerHeight="20px" BackgroundBackColor="White" >
        Asp.net Table of Contents
    </cc1:roundedcorners></a>
    </td></tr></table>

    </td>


    <td>
    <table><tr><td>
    <cc1:roundedcorners id="RoundedCorners3" runat="server" 
        ShowTitle="True" RoundedBottom="False"
        BackColor="lightyellow" BorderColor="Goldenrod" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
        ImageDirectory="/experiments/data/rc/" Font-Size="11px" Width="125px" Padding="5px"
        Title="Sales" TitleStyle-BackColor="Goldenrod" TitleStyle-Font-Bold="True" CornerHeight="30px"
        TitleStyle-Font-Size="13px" TitleStyle-HoritzontalAlign="Left">

        You can also opt to not round the bottoms, if that's what floats your boat.
    </cc1:roundedcorners> 
    </td></tr></table>
    </td>



    </tr>
</table>

    <table><tr><td>
    <cc1:roundedcorners runat="server"
        ImageDirectory="/experiments/data/rc/"
        ShowTitle="True" title="New Tool! &nbsp;&nbsp;&nbsp;&nbsp;Thanks to Alan Cooper for the idea!" 
        TitleStyle-BackColor="silver"    BackColor="white" BorderColor="silver"
        BorderStyle="Solid" BorderWidth="1px" 
        Font-Names="Verdana" Font-Size="12px" Width="540px" Padding="5px" 
        HorizontalAlign="Right" TextHorizontalAlign="Center" align="left"
        CornerHeight="30px" BackgroundBackColor="White" >
        <b><= Use the left dropdown to find topical links from our sites and others</b>
    </cc1:roundedcorners>
    </td></tr></table>

</form></body></HTML>
There are many worthy charities!!. But perhaps help starving children in Africa or South America AND help Charles too. a $5 tip buys him lunch at McDonalds, a $20 tip buys his kid Hitoshi a new computer game, a $39 tip buys his daughter Michiko a few nice outfits. See our donor list.