Solved

VB.net Hide checkbox once product has been sold

Posted on 2009-05-12
2
250 Views
Last Modified: 2012-05-06
I need to figure out how to Hide a product (Exclusive Back Cover) once it has been sold. I know that I will need to query the database and see if BackCover = 1 and if so no longer show the checkbox ckBackCover.

I am not sure how to query the database and search through all records
0
Comment
Question by:Albee_J
2 Comments
 
LVL 3

Accepted Solution

by:
mpeaden2 earned 500 total points
ID: 24366418

please mark as answer if this helps...
'Read all Potting Types and select only distinct

        cmdSql = New SqlCommand("SELECT statement here", sqlCon)

        Dim DA As New SqlDataAdapter(cmdSql)

        Dim DT As New DataTable

        Dim DR As DataRow

        Dim Counter As String = Nothing

        'Fill dataset

        DA.Fill(DT)

        

        For Each DR In DT.Rows

            'Place your show/hide code here

        Next

        'Finshed with Adapter/Datatable

        DA.Dispose()

        DT.Dispose()

Open in new window

0
 

Author Comment

by:Albee_J
ID: 24366499
Thank you!  I will implement and advise.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

8 Experts available now in Live!

Get 1:1 Help Now