Hi guys, I'm trying to learn how to use a class in my web page. I tried reading some of the other posts on this subject but I can't seem to understand it very well.

I have a combo box on my asp page called cmbStores. In my public class, I want to be able to fill this box with some items.

I need to know the requried syntax needed in the class and how do I call this class to run from my web page.

My asp page is called Menu.aspx. I called the class cmbPrograms.vb

I want to be able to add these items to the combo box.
VB Code:
  1. cmbPrograms.ClearSelection()
  2.         cmbPrograms.Items.Add("--Select Program--")
  3.         cmbPrograms.Items.Add("Auto Job Status")
  4.         cmbPrograms.Items.Add("Cigarette Units")
  5.         cmbPrograms.Items.Add("Misc. File Status")
  6.         cmbPrograms.Items.Add("PDI Sales")
  7.         cmbPrograms.Items.Add("Price Check")
  8.         cmbPrograms.Items.Add("Remote Desktop")
  9.         cmbPrograms.Items.Add("RMS Compare")
  10.         cmbPrograms.Items.Add("Store Fuel Prices")
  11.         cmbPrograms.Items.Add("Store Phone-Ins")
Please display all code required for me to do this because I won't know otherwise.

Thank you.