Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 10th, 2010, 03:02 AM
Authorized User
 
Join Date: Mar 2010
Posts: 65
Thanks: 6
Thanked 0 Times in 0 Posts
Default HoverMenuExtender and RoundedCornerExtender

Hi,
I am having a Button control created Dynamically. When i hover my mouse on it, Panel control Popsup(using Hovermenu Extender).At the same time i want the Panel control to have RoundedCorners(using RounderCornerExtender). Is it Possible?

If i dont apply rounded corners its working fine, otherwise looks like the Panel control popsup showing only its top rounded border.

-May be iam not explaining it properly.

My code is:

protected void Page_Load(object sender, EventArgs e)
{
int i=0;
Button hovbut = new Button();
hovbut.ID = "b1"+i;
hovbut.Text = "Hover on me";
Form.Controls.Add(hovbut);

Panel p = new Panel();
Form.Controls.Add(p);
p.ID = "p1"+i;
p.Height = Unit.Pixel(100);
p.Width = Unit.Pixel(300);
p.BackColor = Color.BurlyWood;


AjaxControlToolkit.HoverMenuExtender x1 = new AjaxControlToolkit.HoverMenuExtender();
Form.Controls.Add(x1);

AjaxControlToolkit.RoundedCornersExtender rc = new AjaxControlToolkit.RoundedCornersExtender();
Form.Controls.Add(rc);

rc.TargetControlID = p.UniqueID;
x1.PopupControlID = p.ClientID;
x1.TargetControlID = hovbut.UniqueID;
}
-Thanks









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.