-->

Wednesday, May 22, 2013

Computer Programming : How to use DropShadowExtender in AJAX with Example

Computer Programming : How to use DropShadowExtender in AJAX with Example

DropShadowExtender enables you to add a drop shadow to an ASP.NET panel control . Using this extender , you can specify the width and opacity of the drop shadow as well  as make the corners of the panel rounded to give the panel looks more attractive and professional .

Lets take an Example

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

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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <asp:Panel ID="Panel1" runat="server" Width="269px">
            <asp:Login ID="Login1" runat="server"></asp:Login>
        </asp:Panel>
        <asp:DropShadowExtender ID="DropShadowExtender1" runat="server" TargetControlID ="Panel1" Opacity ="0.7" Rounded ="true" ></asp:DropShadowExtender>
    </div>
    </form>
</body>

</html>

OutPut:





Properties of DropShadowExtender

TargetControlID : Set the ID of the control or link on which you want to apply the DropShadow effect.

Width : Sets the width of the drop shadow . The default value for the width of the shadow in 5 pixels.

Opacity : Sets the opaqueness of the drop shadow . The value of the drop shadow opaqueness ranges from 0 to 1.0 . The default value for Opacity is 0.5.

TrackPosition : Sets the value to true if you want to track the position of the control to which this extender is attached.

Rounded : Sets the value to True if you want to make the corners of the drop shadow rounded.


Read other related articles

Also read other articles

© Copyright 2013 Computer Programming | All Right Reserved