Get toolbar DropDownList value into database

Last post 07-25-2006, 5:52 AM by the4bs. 0 replies.
Sort Posts: Previous Next
  •  07-25-2006, 5:52 AM 21222

    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 as RSS news feed in XML