473,386 Members | 1,745 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.

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="BudgetCreate.aspx.vb" Inherits="_Default" %>

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

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&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="Vertical" 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="Insurance"></asp:TreeNode>
<asp:TreeNode Text="Maintenance"
Value="Maintenance"></asp:TreeNode>
</asp:TreeNode>
</asp:TreeNode>
<asp:TreeNode Text="Clothing"
Value="Clothing"></asp:TreeNode>
<asp:TreeNode Text="Donations" Value="Donations">
<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 1736

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

Similar topics

2
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...
7
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...
2
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...
3
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...
2
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...
12
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.