473,322 Members | 1,510 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,322 software developers and data experts.

Vb.Net: Displaying hierarchical name in Label

Hi, everyone I'm newbie to asp.net and currently getting mud with how to display something in label I'm thinking to visualize it: CEO>GM>Manager>Supervisor>Worker

As example:

First of all, there is only "CEO"inside Label1 when user click on a "down"button,Label1 will update into "CEO>GM"

user click again on "down",Label1will update again into "CEO>GM>Manager" and so on..

then when user click on "up" button, Label1 will delete the last name in the string

Ex: CEO>GM>Manager =========> CEO>GM

Right now, what I had did is only "down" button , but "up" button

I dont know how to figure it out: Label1.Text = Label1.Text + " > " + e.Item.Cells(1).Text + " " + e.Item.Cells(2).Text

I'm taking name from a datagrid

Please give me some direction to go, thanks in advance..
Aug 22 '08 #1
3 816
I have an idea, but don't know it can work or not?
Can anyone tell me more detail or give me the direction to go
because of i keep it all string in a label
hence, i use substring to remove what i want
for example,in CEO>GM>Manager
i search for substring">Manager", then delete it from the string
but i dont know how to visualize it, can anyone help me?
thx in advance..
Aug 22 '08 #2
cloud255
427 Expert 256MB
If the label already contains a value and you want to remove part of it, it becomes a string manipulation operation. I suggest you look into the String class, ecpecially the String.Remove() method.
Aug 22 '08 #3
Thx lots
I hav found a way to sole it with using substring to remove it
Aug 22 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jamie Jackson | last post by:
I'd like to make a hierarchical select box: However, requirements are only children (that have no children themselves) are selectable. So here's a snip of what the select box's options might look...
1
by: Michael Gorbach | last post by:
Iv got a StatisticsContainer object that contains an arraylist of objects of different types, all inherited from class Statistic. The statistics class has 2 string public properties, name and...
1
by: sck10 | last post by:
Hello, I am pulling data from a SQL Server table. One field that is (varchar 4000) is used to show notes. I am using a FormView for showing and editing the data. When the form is in Item...
3
by: sck10 | last post by:
Hello, I am creating a form for users to enter information about a lab and the members of the lab. I have one form (FormView) that they use to enter information about that lab. The keyvalue is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.