【发布时间】:2010-12-16 01:23:01
【问题描述】:
我有最新版本的 AjaxControlToolkit,并且正在 AjaxControlToolkit ReorderList 中使用 AjaxControlToolkit Html Editor 控件。我需要能够访问“内容”属性,以便将值写入数据库,但 FindControl 找不到。
例如,我可以在 ItemCommandEvent 中找到一个 TextBox 控件:
Protected Sub IncludedSectionComponentsReorderList_ItemCommand(ByVal sender As Object, ByVal e As AjaxControlToolkit.ReorderListCommandEventArgs) Handles IncludedSectionComponentsReorderList.ItemCommand
If e.CommandName = "SaveChanges" Then
Dim txtSectionComponentLabel As TextBox = CType(e.Item.FindControl("txtSectionComponentLabel"), TextBox)
End If End Sub
但我在同一事件中找不到 AjaxControlToolkit Html 编辑器:
Protected Sub IncludedSectionComponentsReorderList_ItemCommand(ByVal sender As Object, ByVal e As AjaxControlToolkit.ReorderListCommandEventArgs) Handles IncludedSectionComponentsReorderList.ItemCommand
If e.CommandName = "SaveChanges" Then
Dim editor As Editor = CType(e.Item.FindControl("3Editor"), Editor)
strSectionControlValue = editor.Content
End If
End Sub
【问题讨论】:
标签: asp.net controls ajaxcontroltoolkit reorderlist html-editor