treeview + dropdownlist + firefox = bad idea!!

A

Alex D.

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>
 
A

Alex D.

Alex D. said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top