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" "">

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

<html xmlns="" >
<head runat="server">
    <title>Untitled Page</title>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server" ID="Scrptman">
    <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;">
   <td align="center" valign="middle">
     This is ASP.Net AJAX rounded corner extender
     <cc1:RoundedCornersExtender Corners="All" Radius="10" TargetControlID="MainPanel"
          ID="RoundedCornersExtender1" runat="server"></cc1:RoundedCornersExtender>

1 comment: