473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

treeview + dropdownlist + firefox = bad idea!!

hey guys I found what is causing the problems with my treeview in
Firefox...the answer is: treeview+dropdwonlist in the same page dont work!
try this simple code and see for yourselves. you can do it using the IDE,
just add a treeview and some nodes and add a dropdownlist..then see if your
treeview + and - images switches and also check if your treeview
collapsed/expanded information is maintained between postbacks!

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs"
Inherits="test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" runat="server">

<div>

<asp:DropDownList ID="DropDownList1" runat="server">

</asp:DropDownList>

<asp:TreeView ID="TreeView1" runat="server">

<Nodes>

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode>

</asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode>

</asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode>

</asp:TreeNode>

</Nodes>

</asp:TreeView>

</div>

<asp:Button ID="Button1" runat="server" Text="Button" />

</form>

</body>

</html>
Feb 13 '06 #1
1 2655

"Alex D." <al********@hotmail.com> wrote in message
news:OQ**************@TK2MSFTNGP09.phx.gbl...
hey guys I found what is causing the problems with my treeview in
Firefox...the answer is: treeview+dropdwonlist in the same page dont work!
try this simple code and see for yourselves. you can do it using the IDE,
just add a treeview and some nodes and add a dropdownlist..then see if
your treeview + and - images switches and also check if your treeview
collapsed/expanded information is maintained between postbacks!

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs"
Inherits="test" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" runat="server">

<div>

<asp:DropDownList ID="DropDownList1" runat="server">

</asp:DropDownList>

<asp:TreeView ID="TreeView1" runat="server">

<Nodes>

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode>

</asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode>

</asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node">

<asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode>

</asp:TreeNode>

<asp:TreeNode Text="New Node" Value="New Node"></asp:TreeNode>

</asp:TreeNode>

</Nodes>

</asp:TreeView>

</div>

<asp:Button ID="Button1" runat="server" Text="Button" />

</form>

</body>

</html>

Feb 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Marco Martin | last post by:
Hi all, I need to figure the best solution to my problem. <Background> A Bill of materials application that has a treeview as the master and a datagrid as the details. The treeview holds...
3
by: Olivier Verdin | last post by:
Hi, I have a page with several Textboxes and several DropDownList. When I click on a 'save' button, it creates a record in a database. The page works fine under Internet Explorer. It does...
1
by: Alex D. | last post by:
does the treeview fully suport firefox-mozilla? maybe I am doing something wrong but my + and - node expand node images dont switch when are clicked, and it seems that the node expanded status wont...
0
by: David | last post by:
Hi All, I'm trying to create a treeview with the Microsoft.Web.UI.WebControls.TreeView. It seems to work in both ie and firefox but I wanted to remove postback events for the checkboxes in the...
3
by: =?Utf-8?B?TGVzbGll?= | last post by:
Using Visual Studio 2005 SP1 I am attempting to dynamically load a treeview control. I create an XmlDataSource and then load the data source using XmlDataSource.Data. I Load my XML string into...
2
by: Joe Stateson | last post by:
Not sure what is going on. I have a treeview of an XmlDataSource with cacheing enabled. With only a few nodes there is no problem on a postback, the treeview is repainted immediately. With a lot...
10
daJunkCollector
by: daJunkCollector | last post by:
The following code renders perfect in IE, but Firefox adds immense padding in between my <tr> tags. I have tried applying <table cellpadding = 0 cellspacing = 0>. It decreases the extra space so...
3
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a...
3
by: Steve | last post by:
Hi All I have an asp.net 2.0 website with the following css file It uses Master pages and in Firefox 3.04 for windows only, 3 of the web pages don't display the Master page properly The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.