Radcombobox not getting the selected value

2 posts, 0 answers
  1. Gean
    Gean avatar
    2 posts
    Member since:
    May 2012

    Posted 11 Dec 2013 Link to this post

    Here is my code:

    RadComboBox sample= this.Master.FindControl("ContentPlaceHolder").FindControl("rcb1") as RadComboBox;
    sample.SelectedValue = 1;


    It doesn't select any values on my combobox.
    Did i make any mistake? I really dont know what to do next.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Dec 2013 Link to this post

    Hi Gean,

    Please have a look into the following code snippet to get the selected value of RadComboBox.

    C#:
    RadComboBox combo = (RadComboBox) this.Master.FindControl("RadComboBox1");
    combo.SelectedValue = "1";

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top