Solved

Add "Out of Stock" to javascript/html table

Posted on 2011-09-22
1
214 Views
Last Modified: 2012-05-12
I have a website where cusotmers order instruments.  We are getting low on stock and I want to be able to add something to the site that says "Out of Stock"  

I've attached a doc that shows what the table looks like on our site.  I would like any way to visually show "Like New" & "Used" are out of stock.

I will attached the code that populates the table
Thanks!



 web-table.docx aeRntInstrumentSelect.aspx
0
Comment
Question by:mschirad
1 Comment
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 36899276
>I will attached the code that populates the table

why don't you add this column with this code?
if you've a SQL query somewhere :

SELECT instrument_type, CASE WHEN stock = 0 THEN 'Out of Stock' ELSE stock END FROM instruments
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Bootstrap input box width 2 33
Asp.net mvc foreach 3 35
Footer at the bottom of the page not centered 5 28
bootstrap footer centering and expand problems 7 28
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses four methods for overlaying images in a container on a web page
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now