indydavid32
Jan 15th, 2004, 11:53 AM
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.
cmbPrograms.ClearSelection()
cmbPrograms.Items.Add("--Select Program--")
cmbPrograms.Items.Add("Auto Job Status")
cmbPrograms.Items.Add("Cigarette Units")
cmbPrograms.Items.Add("Misc. File Status")
cmbPrograms.Items.Add("PDI Sales")
cmbPrograms.Items.Add("Price Check")
cmbPrograms.Items.Add("Remote Desktop")
cmbPrograms.Items.Add("RMS Compare")
cmbPrograms.Items.Add("Store Fuel Prices")
cmbPrograms.Items.Add("Store Phone-Ins")
Please display all code required for me to do this because I won't know otherwise.
Thank you.
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.
cmbPrograms.ClearSelection()
cmbPrograms.Items.Add("--Select Program--")
cmbPrograms.Items.Add("Auto Job Status")
cmbPrograms.Items.Add("Cigarette Units")
cmbPrograms.Items.Add("Misc. File Status")
cmbPrograms.Items.Add("PDI Sales")
cmbPrograms.Items.Add("Price Check")
cmbPrograms.Items.Add("Remote Desktop")
cmbPrograms.Items.Add("RMS Compare")
cmbPrograms.Items.Add("Store Fuel Prices")
cmbPrograms.Items.Add("Store Phone-Ins")
Please display all code required for me to do this because I won't know otherwise.
Thank you.