Hi I am new to ASP.NET and to programming in general. I am trying to pass values from two drop down lists which will be display in a lblResult. My page load looks like this:
protected void Page_Load(object sender, EventArgs e)
{
{
ddlCompany.Items.Add(new ListItem("ABC Company", "0.15"));
ddlCompany.Items.Add(new ListItem("XYZ Inc", "0.05"));
ddlCompany.Items.Add(new ListItem("Testing Corp", "0.20"));
ddlCompany.Items.Add(new ListItem("Retail Sales", "0.40"));
ddlProduct.Items.Add(new ListItem("Skateboard", "250"));
ddlProduct.Items.Add(new ListItem("Surfboard", "598"));
ddlProduct.Items.Add(new ListItem("Wakeboard", "459"));
ddlProduct.Items.Add(new ListItem("Wake Skate", "125"));
}
}
I need help getting both drop down lists to calculate a total when selected. The first drop down list has the Company Name, and the product percent markup. The second drop down list has the product, with the product price. An example of what my label results should be : ABC Company, your price for a Skateboard is $287.50 and so on.
Any help I can get on this I would really appreciate it.
Thanks again,
Charlie