Results 1 to 2 of 2

Thread: Using a public class

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612

    Using a public class

    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.
    David Wilhelm

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Indiana
    Posts
    612
    Can someone help me with this please?
    David Wilhelm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width