Saturday, March 10, 2012

ASP.Net AJAX rounded shape area


This is the example of ASP.Net AJAX rounded corner extender. Paste below code in your ASP.Net AJAX enable web page.



<%@ Page Language="C#" AutoEventWireup="true" CodeFile="toggle_button.aspx.cs" Inherits="toggle_button" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server" ID="Scrptman">
    </asp:ScriptManager>
    <div align="center">
    <table width="50%" >
    <tr align="center">
   
    <td valign="middle"><asp:Panel BackColor="BlueViolet" Height="200px"
        runat="server" ID="MainPanel" Width="50%" HorizontalAlign="Center">
   <table align="center" style="height:100px;">
  
   <tr>
   <td align="center" valign="middle">
     This is ASP.Net AJAX rounded corner extender
  
   </td></tr></table>
   </asp:Panel>
   
    </td></tr></table>
   
     <cc1:RoundedCornersExtender Corners="All" Radius="10" TargetControlID="MainPanel"
          ID="RoundedCornersExtender1" runat="server"></cc1:RoundedCornersExtender>
    </div>
    </form>
 
</body>
</html>

1 comment: