473,498 Members | 1,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<DIV> tag not allowing AutoCompleteExtender's autoDrop down to appear fully

62 New Member
Hi Team,

I searched a lot on this but could not find anything, so I am posting it here.

I am using an AutoCompleteExtender in a user control which is in a master page. The page layout is designed byDIV tags. My code in that user control is somehting like..
----------------------------
Expand|Select|Wrap|Line Numbers
  1. <DIV>
  2. <asp:ScriptManager ID="ScriptManager1" runat="server" />
  3.         <asp:TextBox ID="TextBox1" runat="server" Width="160px"></asp:TextBox>
  4.         <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" MinimumPrefixLength="1" 
  5.         ServiceMethod="GetVendors" CompletionListItemCssClass="listItem" CompletionListCssClass="completionListElement" CompletionListHighlightedItemCssClass="highlightedListItem" ServicePath="http://webtest.ariba.com/ajax/webservice.asmx" 
  6.         TargetControlID="TextBox1" OnClientItemSelected="Test"> </cc1:AutoCompleteExtender>
  7.           <asp:Button ID="btn" runat="server" OnClick="btn_Click" Text="Search" />
  8. </DIV>
  9.  
  10. <div>Rest of the page with multiple div tags</div> 
----------------------------
When I type anything in the textbox, the auto dropdown does not appear fully becasue 2nd DIV tag hides or overlap the dropdown.

Please help me,

Thanks,
Manik
Sep 11 '09 #1
10 5348
Frinavale
9,735 Recognized Expert Moderator Expert
Could you please post the CSS styles applied to the <div>'s you're talking about here?
Sep 11 '09 #2
Manikrag
62 New Member
Thanks for responding buddy!

Sure, here we go!
-----------------------
<style type="text/css">
.completionListElement
{

visibility : 0;
margin : 0px! important;

background-color : white;
color : black;

border : solid 1px gray;
cursor : hand;

text-align : left;
list-style-type : none;

font-family : Verdana;
font-size: 11px;

padding : 0;
z-index : 20;

}

.listItem

{

padding: 1px;
z-index: 20;

background-color: white;
}

.highlightedListItem

{

color : black;
FONT-WEIGHT: bold;
background-color: #D7E4F3;

padding : 1px;z-index : 20;
}
</style>
------------------------

Thanks again,
Manik
Sep 11 '09 #3
Manikrag
62 New Member
Sorry I misunderstood it. No CSS for DIV tags, DIV tags are as following..


<div style="float: left; border: px #c0c0c0; background-color:#cccccc; width:100%;">

<div style="float: left;"></div>


<div style="float: right; height: 60px; overflow: hidden; width: 360px;">
<div style="float: right; height: 35px; padding: 2px 5px 10px 1px;"> </div>

and goes on..
Sep 11 '09 #4
Frinavale
9,735 Recognized Expert Moderator Expert
I'm think it has to do with the float styles.
Between the top <div> and the rest of the content place the following

<div sytle="clear:both"></div>


This will make sure that the top <div> stays at the top and the ones below it say below it.
Sep 11 '09 #5
Manikrag
62 New Member
Thanks Frinavale. It is fixed by removing "overflow: hidden;" from

<div style="float: right; height: 60px; overflow: hidden; width: 360px;


Thanks a lot!!
Manik
Sep 14 '09 #6
Frinavale
9,735 Recognized Expert Moderator Expert
Hmm, guess I was wrong about the float styles.

Glad you solved the problem :)

-Frinny
Sep 14 '09 #7
Manikrag
62 New Member
but it was close!! thanks so much for your support!!

You rock!!
Sep 14 '09 #8
RebeccaLouise
1 New Member
@Frinavale
Hi,

Clearing floats didn't not have solved the original problem, But it solved mine.

Thanks :)

Bec.
Oct 1 '09 #9
Manikrag
62 New Member
Great it helped you too.
Oct 1 '09 #10
Frinavale
9,735 Recognized Expert Moderator Expert
@RebeccaLouise
Well at least it helped someone :)

Normally with these kinds of problems it's always some css style setting that is the culprit of the problem.

Cheers!

-Frinny
Oct 1 '09 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

13
3375
by: Mikko Ohtamaa | last post by:
From XML specification: The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (This means that <foo></foo> is equal to...
61
24396
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will...
8
5124
by: slim | last post by:
hi again all, i am still working on the website as mentioned in earlier threads and have hit another snag... http://awash.demon.co.uk/index.php http://awash.demon.co.uk/vd.css the php is...
6
37111
by: Marcus Otmarsen | last post by:
Ok, the situation is as follows: I defined a <DIV> like: <div id="myid" style="position: absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div> This pane is...
44
919
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
4
1844
by: Alan Silver | last post by:
Hello, I would like to know if it is possible to use a panel, but prevent it from adding a <div> tag to the HTML. The reason I want to do this is that I am using a panel to enable me to...
28
5319
by: Kent Feiler | last post by:
1. Here's some html from a W3C recommendations page. <P>aaaaaaaaa<DIV>bbbbbbbbb</DIV><DIV>cccccccc<P>dddddddd</DIV> 2.Although I didn't think it would make any difference, I tried it with the...
2
3357
by: Richard Maher | last post by:
Hi, I'm trying to use the Visibility Style attribute for a Div to effectively PopUp a lightweight window with some additional context-sensitive information, when a user mouses over a given...
8
10010
prino
by: prino | last post by:
Hi all, I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF...
0
7004
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
292
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.