I haven't been able to actually clip the image corners but the following code does have a nice appearance to it.
The JPG image being used is 344x304, you can re-size the panel to change the appearance and you can alter the actual image corners.
Toolkit tagging in the web.config:
<pages>
<controls>
<add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" />
</controls>
</pages>
Page code:
<%@. Page Language="VB" Debug="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server"></script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Ajax Image test</title>
</head>
<body>
<form visible="true" id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server">
</asp:ScriptManager>
<asp:Panel Wrap="false" HorizontalAlign="center" ID="Panel1" runat="server" Height="304px" Width="344px" BackImageUrl="image.jpg">
<ajaxToolkit:DropShadowExtender ID="DropShadowExtender1" TargetControlID="Panel1" Rounded="true" Opacity=".3" Width="6" runat="server" Enabled="true">
</ajaxToolkit:DropShadowExtender>
</asp:Panel>
</form>
</body>
</html>
0 件のコメント:
コメントを投稿