473,657 Members | 2,594 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

treeview + dropdownlist + firefox = bad idea!!

hey guys I found what is causing the problems with my treeview in
Firefox...the answer is: treeview+dropdw onlist 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..t hen 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>Untitl ed Page</title>

</head>

<body>

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

<div>

<asp:DropDownLi st ID="DropDownLis t1" runat="server">

</asp:DropDownLis t>

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

"Alex D." <al********@hot mail.com> wrote in message
news:OQ******** ******@TK2MSFTN GP09.phx.gbl...
hey guys I found what is causing the problems with my treeview in
Firefox...the answer is: treeview+dropdw onlist 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..t hen 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>Untitl ed Page</title>

</head>

<body>

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

<div>

<asp:DropDownLi st ID="DropDownLis t1" runat="server">

</asp:DropDownLis t>

<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
2499
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 both master and detail information but only displays a brief description. When a node is clicked, if the node has children, it displays all Child information in detail form in a datagrid. If it has no children, it simply displays itself as a row in
3
2921
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 not work under FireFox. The dropdownlist are always selecting the zero index value. If I debug and I stop the program in the page_load, the dropdownlist are already set to zero index.
1
1365
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 persist between postbacks for that reason. any help?
0
1173
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 treeview. I read http://forums.asp.net/556179/ShowPost.aspx where it says this can be done by modifying the treeview.htc. I did this and it seems to work in ie. When I tried in firefox it didn't make any difference so I made some more changes to...
3
4065
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 this property using the code shown below. However if I change the values in the XML string that I am loading into XmlDataSource.Data and then run the web, the changes do not show up. The only way to get the changes to show up is to rebuild the...
2
2719
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 of nodes and many many leaves, it can take 2 minutes for a repaint. Both running in debug (VS2005) or just running the web page from the wwwroot server using IE7. However, if I bring up FireFox to view the page, the repaint takes only a second....
10
7027
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 slightly its not even worth it. As a matter of fact, it closes the nice gaps in IE more than it does the large unwanted firefox gaps. There has to be a way to fix this--there are so many people who are diehard slap happy about firefox I find it...
3
2423
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 couple of the Firefox is munging up. So, on my information page there is a gridview in the content section of the page. The masterpage contains searching capabilities for the gridview. The masterpage has controls contained in a panel control,...
3
2013
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 content page overlaps the Master page boundaries In IE 6/7 All works fine
0
8305
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8730
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1607
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.