473,479 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 945

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

Similar topics

3
1709
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
1728
by: Brent Burkart | last post by:
Can anyone recommend an inexpensive simple database driven menu? All suggestions are welcome. Thanks, Brent
0
236
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
5185
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
1056
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
2776
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
1816
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
2474
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
1270
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
7027
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
6899
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
7019
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,...
1
6719
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...
0
5312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4463
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...
0
2980
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1288
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 ...
1
555
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.