locked
Need help with changing label value depeding on two dropdown lists RRS feed

  • Question

  • User2118991054 posted

    So i want to change my label named total value depending on two dropdown lists i have written a code to try working with one dropdown list but the label value is not changing this is my code:

    protected void DropDownPermit_SelectedIndexChanged(object sender, EventArgs e)
    {
    if (this.DropDownPermit.SelectedValue == "Blue")
    {
    this.total.Text = "$10.00";
    }

    can someone help me

    Sunday, September 22, 2013 7:01 AM

Answers

  • User-1716253493 posted

    Have you set DropDownList 

    AutoPostBack = "true"



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, September 22, 2013 7:55 AM

All replies

  • User-1716253493 posted

    Have you set DropDownList 

    AutoPostBack = "true"



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, September 22, 2013 7:55 AM
  • User-1360095595 posted

    Show your relevant html markup. 

    Sunday, September 22, 2013 8:11 AM
  • User2118991054 posted

    Thanks I just realised that i didn't put the AutoPostback as true

    Sunday, September 22, 2013 10:33 PM