Parsing String

tehon3299

Well-known member
Joined
Jan 6, 2003
Messages
155
Location
Liverpool, NY
I am creating HTML code on an ASPX page with script code and its creating a list of files in a directory in alphabetical order. How can I add a link to A B C D E F at the top of the page? I want to look at the filenames and if the first character is A then write the HTML code so when A is clicked it goes there. Understand what I am saying?
 
Nope. Are you saying at first it lists all the files and then as the user clicks the letters it filters the files based on the first letter? If so I could imagine either a Dataset with a DataView handling the filtering (quick and simple) OR a multidimensional arraylist (much more manual).
 
I want to create a list at the top of the page, i.e. A | B | C | D | ....
When a user clicks B I want the page to move to the first file beginning with B. Ive seen this on many pages, like dictionary pages and stuff.
 
Are you going to list all the files on one page and you just want to move to the right letter (in which case a simple <a name="whatever"/> will do the trick) or only show the files matching the letter (refer to the two techniques above).
 
Im going to list them all and just move to the right page. But since I am reading all files at runtime I can not hard code the <a name=> stuff. I need to parse the filename and check to see when the first A comes up, i need to code the <a name=> then, and then wait for the next B to be loaded then code that. Get it? How can I do it?
 
Back
Top