0
这是我radTextBox
内radDock
,我把这个在我的ParentPage
无法里面radDock从孩子访问radtextbox
<telerik:RadDockZone ID="ZoneDescription" runat="server" BorderStyle="None" Width="600px">
<telerik:RadDock ID="DockDescription" runat="server" EnableDrag="false" EnableRoundedCorners="true"
Title="Itinerary Description" Width="600px" Skin="Vista" DefaultCommands="None">
<ContentTemplate>
<div style="padding-top: 5px;">
<telerik:RadTextBox ID="rtxtDescription" runat="server" Width="100%" TextMode="MultiLine">
</telerik:RadTextBox>
</div>
</ContentTemplate>
</telerik:RadDock>
</telerik:RadDockZone>
从我的子页面,我得到rtxtDescription
的文本值喜欢,
(((this.Parent.FindControl("ZoneDescription") as RadDockZone).
FindControl("DockDescription") as RadDock).
FindControl("rtxtDescription") as RadTextBox).Text;
和
(this.Parent.FindControl("rtxtDescription") as RadTextBox).Text;
但都没有w ork,不能访问rtxtDescription
。
我该如何解决?在此先感谢:)