Showing posts with label correctly. Show all posts
Showing posts with label correctly. Show all posts

Monday, March 26, 2012

DropShadowExtender in a table

Hello,

Does anyone know why the DropShadowExtender doesn't show correctly when the panel control that it calls is under an html table?

The main problem is with the shadow.

Thanks

A simple sample page demonstrating the problem would probably be helpful here.


Some say an image is worth more than 1000 words

As you can see the top an bottom borders look funny.

That is using the same example as the one that the toolkit has, and only inserting the panel into a table, very simple, like this

<table>
<tr>
<td>
<asp:Panel ID="Panel1" runat="server" CssClass="dropShadowPanel" Width="500px">
<div style='padding: 10px'>
<p>
First Name:
<asp:TextBox ID="TextBox1" runat="server" Style='position: absolute; left: 100px;
width: 150px"></asp:TextBox>
</p>
<p>
Last Name:
<asp:TextBox ID="TextBox2" Style='position: absolute; left: 100px; width: 150px'
runat="server"></asp:TextBox>
</p>
<hr />
</div>
</asp:Panel>
</td>
</tr>
</table>

Thanks


I think it may have something to do with one of the other styles/attributes of your page. The below page containing your TABLE above and the necessary framework to get a drop shadow looks fine to me in IE6:

<%@. Page Language="C#" %><%@. Register Assembly="AtlasControlToolkit" Namespace="AtlasControlToolkit" TagPrefix="atlasToolkit" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> <atlas:ScriptManager ID="SM" runat="server"> </atlas:ScriptManager> <table> <tr> <td> <asp:Panel ID="Panel1" runat="server" CssClass="dropShadowPanel" Width="500px" Style="background-color: Lime"> <div style='padding: 10px'> <p> First Name: <asp:TextBox ID="TextBox1" runat="server" Style="position: absolute; left: 100px; width: 150px"></asp:TextBox> </p> <p> Last Name: <asp:TextBox ID="TextBox2" Style='position: absolute; left: 100px; width: 150px' runat="server"></asp:TextBox> </p> <hr /> </div> </asp:Panel> </td> </tr> </table> <atlasToolkit:DropShadowExtender ID="DSE" runat="server"> <atlasToolkit:DropShadowProperties TargetControlID="Panel1" Rounded="true" /> </atlasToolkit:DropShadowExtender> </div> </form></body></html>

Hi David,

Thank you for your answer.

I checked out the code for any differences, since it looked pretty much the same as mine. It had a few differences, and I removed some code until I found out what was causing it.
The problem is the Opacity property in DropShadowProperties, if you set that to any value < 1 then you will see the bug.


Weird. My sample looks fine for me in IE6 SP1 even with Opacity="0.5".

Wednesday, March 21, 2012

DropDownList displaying press SPACEBAR or ENTER to activate

This message is like the one that appears on embedded flash movies when they are not instantiated correctly.

But I am using MS AJAX and this is just a DropDownMenu. In this case I am using IE6 and the Drop Down is outside of an update panel. Pressing the spacebar activates the dropdown and it works normally.

Has anybody seen this behavior before?

sounds like you used a windows forms dropdownlist control instead of a web dropdownlist control.

check to make sure you're actually using the asp:dropdownlist

DropDownExtender cannot work correctly in IE6 and Firefox 2.0. Theme cannot change in Fire

Hi there,
A week later, I begin develop a new shop cart application with Ajax enabled.
My problem is:
1. My Page option feature (to change site's theme) is put in a panel with a DropDownExtender.
It cannot show/hide correctly:
- In Internet Explorer 6.0, italway show a "area" at top or bottom in the page.
Click on darkblue and pink icon still can change page skin.
- In Firefox browser, my application hide/show "area" correctly. But, when click on any icon
(an asp:ImageButton), after a postback,page's theme doesn't change.
- In Opera, and IE 7, everything is fine.

Please help me.
This is my demo site url:
http://ajaxshop-1.at.vwdhosting.net/
"Page option" in my language is: "Tùy ch?n trang" - under the search bar.

My source code:

1/*2* This is my user control aspx code3*/4"C#" AutoEventWireup="true" CodeFile="SelectTheme.ascx.cs" Inherits="UserControls_SelectTheme" %>5"AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>6

"right">7

class="PageOptionTextStyle">8 "HyperLinkPageOption" runat="server" Text="Tùy ch?n trang "9 Width="100px">10 "DropDownExtender1" runat="server" DropDownControlID="PanelPageOption"11 TargetControlID="HyperLinkPageOption" HighlightBorderColor="transparent" >1213 "PanelPageOption" runat="server" Width="100px">14

"vertical-align:middle;text-align:center; background-color:LightYellow; height:20px; border-right: gray 1px ridge; border-top: gray 1px ridge; border-left: gray 1px ridge; border-bottom: gray 1px ridge;" align="left">15

16"middle" height="20px">17"middle">18class="innerlink"> Màu s?c: 19"ImageButtonDarkBlueSeclect" runat="server" SkinID="DarkblueSkinSelectButton" OnClick="ImageButtonDarkBlueSeclect_Click">20 21"ImageButtonDarkRedSelect" runat="server" SkinID="DarkredSkinSelectButton" OnClick="ImageButtonDarkRedSelect_Click">222324

2526

2728

29

303132/*33* This is code behind34*/35public partialclass UserControls_SelectTheme : System.Web.UI.UserControl36{37protected void Page_Load(object sender, EventArgs e)38 {3940 }41protected void ImageButtonDarkBlueSeclect_Click(object sender, ImageClickEventArgs e)42 {43 MySetTheme("Darkblue");44 }45protected void ImageButtonDarkRedSelect_Click(object sender, ImageClickEventArgs e)46 {47 MySetTheme("Darkred");48 }4950protected void MySetTheme(string themename)51 {52//Apply new theme53 Profile.CurrentTheme = themename;5455//Transfer to previous page56 Server.Transfer(Page.AppRelativeVirtualPath.ToString());57 }58}5960

Sorry, y writing "A week later, I begin developing a new shop cart application with Ajax enabled.
" i mean "A week before, I began develop a new shop cart application with Ajax enabled"

And, if you don't want to check my error in my web page, you can view this image

Error in IE6