473,671 Members | 2,216 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vertical scrolling issue

Hello,
I am currently using Visual Studio 2005 for a project and I am
attempting to employing the new treeview control using VB.net. I have
placed the treeview on top of a panel and have enabled vertical
scrolling on the panel. The problem is that when I scroll down towards
the bottom of the treeview and click on one of the nodes the scroll bar
jumps back to the top. Is there anyway to keep the vertical scroll bar
in the same position after I click on a lower level node in the
treeview?

Thanks,
Billy


<%@ Page Language="VB" AutoEventWireup ="false"
CodeFile="Budge tCreate.aspx.vb " Inherits="_Defa ult" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
&nbsp; &nbsp; &nbsp;&nbsp;&nb sp;&nbsp;&nbsp; &nbsp;<br />
<br />
&nbsp;<br />
<br />
<br />
<br />
&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;
<hr style="z-index: 102; left: 0px; position: absolute; top:
0px" />
<hr style="z-index: 103; left: 0px; position: absolute; top:
0px" />
<hr style="z-index: 104; left: 0px; position: absolute; top:
0px" />
&nbsp;
<asp:Panel ID="Panel1" runat="server" Height="104px"
ScrollBars="Ver tical" Style="z-index: 105;
left: 0px; position: absolute; top: 0px" Width="200px">
<asp:TreeView ID="TreeView1" runat="server" Style="z-index:
100; left: 0px; position: absolute;
top: 0px">
<Nodes>
<asp:TreeNode Text="New Node" Value="New
Node"></asp:TreeNode>
<asp:TreeNode Text="Expenses" Value="Expenses ">
<asp:TreeNode Text="Auto" Value="Auto">
<asp:TreeNode Text="Fuel"
Value="Fuel"></asp:TreeNode>
<asp:TreeNode Text="Insurance "
Value="Insuranc e"></asp:TreeNode>
<asp:TreeNode Text="Maintenan ce"
Value="Maintena nce"></asp:TreeNode>
</asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Clothing"
Value="Clothing "></asp:TreeNode>
<asp:TreeNode Text="Donations " Value="Donation s">
<asp:TreeNode Text="Church"
Value="Church"> </asp:TreeNode>
<asp:TreeNode Text="Red Cross" Value="Red
Cross"></asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Medical" Value="Medical" >
<asp:TreeNode Text="Dentist"
Value="Dentist" ></asp:TreeNode>
<asp:TreeNode Text="Alergist"
Value="Alergist "></asp:TreeNode>
</asp:TreeNode>
</Nodes>
</asp:TreeView>
</asp:Panel>
</form>
</body>
</html>

Nov 21 '05 #1
0 1751

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

Similar topics

2
11001
by: Don Schneider | last post by:
I tried to setup a frameset which consists of 4 different subframes. Each of these subframes should fetch a different web page from the internet and display it completely (!). BUT: the vertical size should be undefined. Depending on the retrieved (lets say 2nd) webpage the frame should take as much space as it needs to display the whole sub web page without vertical scrollbar. If I implement it like below a vertical scrollbar for each of...
7
15627
by: bienwell | last post by:
Hi, I'm using the CheckBoxList control in ASP.NET for Web development. This checkboxlist is bound by the database. If we have more items for this checkbox list, it takes space on the page. I want to have vertical scroll bar (like CheckedListBox in Window development) to save space. Can we do that in ASP.NET ? Please give me your suggestions ? Thanks in advance.
2
2955
by: P2P | last post by:
Hi I am wondering if someone know of a free cross-browsers vertical scrolling script that - is cross cross-browsers - will call the scrolling content from an external html page or from a url page
3
5374
by: lolo | last post by:
hello. happy new year. I'm trying to build a website for my wife and she is adament on having a horizontal thumbnail scrolling div. great. I have a good vertical scrolling thing, but can't figure out how to make it scroll horizontally. It's probably real simple and I just can't figure it out.... Here is the code I have so far:
2
2754
by: =?ISO-8859-15?Q?Stefan_Br=FCckner?= | last post by:
Hello NG, I'm looking for an solution to find out the real vertical viewport - without the height of horizontal scrollbars. I have two frames side by side. The left one declared 'scrolling="no"' and the right one 'scrolling="auto"'. For the left frame it is important to know if the right frame has a horizontal scrollbar and how sick it is. So I have tried to compare the viewport of both frames.
12
4198
by: slartybartfast | last post by:
I'm new(ish) to css, comfortable using tables, but trying real hard to move away. Please see http://84.9.125.31/developer/css_test/test5.html NB This issue is with IE & Opera - I've tried IE 6&7 and both have the same result. It works fine in FF. Thanks to Petr Stanicek for the original example. As you can see the table is 800px wide in the middle column and it's vertical position is affected by the amount of text in the left or right...
0
8473
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8390
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
8819
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
8597
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
8667
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
5692
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();...
1
2808
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2048
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1806
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.