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

Data driven menu problem

I am considering creating an app that will have an increasing number of
items about which there's information. As info is added about a
different new item (they're medicines, but that's not really that
important) it'll be added to the index.

I want users to be able to search for them in chunks (as well as a
standard "enter the 1st few characters of the name" - that bit's easy!)

What I want is to have some links across the top of the page that might
initially say "A-M" & "N-Z" clicking on them will bring a list of the
required items. However, as the number of items increases over the next
year or so as items are added, it might be more appropriate to have more
(smaller) categories (say A-G, H-R & S-Z or even more.....)

To this end, i have written a SQL server stored proc that takes a
parameter of the form "A-D" and fetches the required records. (It even
recognises single letter ranges.)

I also have a small table with the letter ranges. It is these that I
want to display across the page. My caveat is that I want the HTML &
Code behind remain constant such that changing the ranges in the SQL
table will be reflected in the user's page with no change in the HTML
and no re-compilation of the app.

This is where I'm stuck. A data grid seems only to be able to display
vertically. A data list can be horizontal, but can it cope
automatically cope with changing numbers of data items? (If it can,
that could be my solution!)

(I know that a radio button list would work, but that wouldn't fit with
the overall look and feel of the rest of the site.)

A colleague suggested a stored proc to effectively pivot my table by
creating a new table with a column for each row, but I feel there must
be a more elegant way.

I'm by no means an expert at ASP.Netbut if someone can suggest a way
that'll achieve what I want, I'll happily work out how to do it (what
i'm trying to say is that I;m not expecting anyone to write the code for
me (but wouldn't refuse, if someone did! :-) )

Thanks
--
Paul
Nov 18 '05 #1
0 941

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

Similar topics

3
by: Thomas Coleman | last post by:
I have been playing around with 2.0 and I'm trying clarify a few things about generics and data access. I was hoping to be able to do something like this with nullable types: int? foo = null; ...
2
by: Brent Burkart | last post by:
Can anyone recommend an inexpensive simple database driven menu? All suggestions are welcome. Thanks, Brent
0
by: Paul | last post by:
I am considering creating an app that will have an increasing number of items about which there's information. As info is added about a different new item (they're medicines, but that's not...
5
by: | last post by:
Hi, I'm not sure if what I'm trying to do is possible and there is a limit to my CSS knowledge. I'm trying to generate a CSS drop-down menu from a <li> that has been replaced by an image. The...
0
by: technology_post | last post by:
Sybase Releases DataWindow .NET 2.0, Taking Data-Driven Applications from Complex to Virtually Code-Less Application Development Tool Delivers Support for the Microsoft .NET Framework 2.0 ...
1
by: neeleshsingh12444 | last post by:
Hi I am new to this area i am working on a project (based on C)which need to select a text file from a directory . I am selecting the file by giving the path in the console window but my project...
2
by: nomad | last post by:
I am writing a c++ program and will be implementing a console menu driven prompt. The menu will have several options, and sub-menus may also have multiple options. What is the best data structure...
2
by: Sathish Kumar | last post by:
Anyone have idea how to build a configurable menu control. The menu items must be read from XML or from the database & the items must be built. Options must be provided for generating horizontal or...
0
by: diff | last post by:
I am having trouble preventing a bound source from updating using event-driven validation. There is a very nice article on MSDN explaining this;...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
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,...

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.