How to get RichDropDownList SelectedItem value

Last post 09-20-2006, 5:25 AM by AndyFel. 1 replies.
Sort Posts: Previous Next
  •  09-18-2006, 11:20 AM 22804

    How to get RichDropDownList SelectedItem value

    How do you get the RichDropDownList SelectedItem value?
  •  09-20-2006, 5:25 AM 22843 in reply to 22804

    Re: How to get RichDropDownList SelectedItem value

    Hi
     
    I can help on the client side, but havnt done this on the serverside.
     
    I guess you must be creating the rddl on the fly, if so then add an attribute for the onchange like so. Note that on IE you use one method and firefox another as it renders differently on firefox.
     
    Dim rddl As New CuteEditor.RichDropDownList(Editor1)
    IE version
    rddl.Attributes("onchange") = "BLOCKED SCRIPTalert(this.GetValue());"
    FireFox version
    rddl.Attributes("onchange") = "BLOCKED SCRIPTalert(this[this.selectedIndex].value);"
     
    Hope this helps
View as RSS news feed in XML