Get toolbar DropDownList value into database

  •  07-25-2006, 5:52 AM

    Get toolbar DropDownList value into database

    Hi,
     
    I have a situation where I need to submit the editor content and the SelectedItem.Value of a dropdownList in the toolbar to a database. The Save Button fires some server side code to do this.
     
     
    I can get the content from the editor HTML box into the database without problem (HTML = Editor.Text)
     
    However, I do not seem to be able to get the SelectedItem.Value of the dropdownlist in the toolbar.
     
    I have tried the following code without success:
     
        Dim TemplateName
        Dim ddlTemplates As DropDownList
        ddlTemplates = Editor.FindControl("ddlTemplates")
        TemplateName = ddlTemplates.SelectedItem.Value
     
    Any suggestions?
     
     
     
     
View Complete Thread