|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Listbox is overlapping the Textbox in Asp.netHi All,
Is it not possible to overlap the listbox with other controls. I wanna place the Textbox above the Listbox. I searched many groups but couldn't get the answer. Any suggestions please. To put one control on top of another, you will need to use CSS and set the
Position attribute to Absolute for your control. You may also need to use the Z-Order attribute as well. -- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "santel" <santel_hel***@sify.com> wrote in message news:1135746812.855811.236930@g49g2000cwa.googlegroups.com... > Hi All, > > Is it not possible to overlap the listbox with other controls. I wanna > place the Textbox above the Listbox. I searched many groups but > couldn't get the answer. Any suggestions please. > Thanks for your reply.
I tried all. But the listbox is overlapping the textbox. I want the Textbox to be displayed on top Try this:
<asp:TextBox id="txtOne" runat="server" style="position:absolute;left:2in;top:2in;width:2in;height:2in;z-index:1" /> <asp:ListBox id="lstOne" runat="server" style="position:absolute;left:2in;top:2in;width:2in;height:2in;z-index:2" /> -- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "santel" <santel_hel***@sify.com> wrote in message news:1135749125.537935.109050@f14g2000cwb.googlegroups.com... > Thanks for your reply. > > I tried all. But the listbox is overlapping the textbox. I want the > Textbox to be displayed on top Thanks for your effort.
I tried this. But i can see only listbox. Textbox goes under the Listbox. But I want is vice versa. Can you provide some code?
-- Show quoteHide quoteChristopher A. Reed "The oxen are slow, but the earth is patient." "santel" <santel_hel***@sify.com> wrote in message news:1135753345.052913.293530@g49g2000cwa.googlegroups.com... > Thanks for your effort. > > I tried this. But i can see only listbox. Textbox goes under the > Listbox. But I want is vice versa. > Chris: You meant to have the z order of the textbox GREATER than that
of the listbox Santel: This will work fine in the "modern" browsers (Gekko, KHTML etc.) but will *NOT* work in IE It's a well-known problem with IE. Refer to the KB article 177378 http://support.microsoft.com/default.aspx?scid=kb;en-us;177378 my pet hack to fix this is to clide an IFRAME between the listbox and the textbox Hope this helps -- addup --
Master Pages and Cross-Page Form Information
Adding Access keys to menu items in the Menu control extended Label webcontrol, doesn't populate it's children ?? Is there a way to set onmouseover for a LinkButton in ASP.NET 2.0 ? timer functionality Localize control Repeater Grouping file upload control - ASP2.0 Adding DataMember support to SqlDataSource Earn money Online - without risk! |
|||||||||||||||||||||||