首页 新闻 搜索 专区 学院

如何获取objectList的ItemTemplate中的控件值?

0
悬赏园豆:30 [已关闭问题] 关闭于 2011-06-29 17:24

代码如下:

<mobile:ObjectList ID="objlist" Runat="server" ItemsPerPage="1" OnItemDataBind="Obj_LoadItems">
           <DeviceSpecific Runat="server">
             <Choice>
               <ItemTemplate>
                  <mobile:Label Runat="server">Question:</mobile:Label>
                  <mobile:Label Runat="server"><%#((ObjectListItem)Container)["Question"] %></mobile:Label>
                  <mobile:Label Runat="server" ID="QKey"><%#((ObjectListItem)Container)["QuestionKey"] %></mobile:Label>
                  <mobile:Label Runat="server">Answer:</mobile:Label>
                  <mobile:SelectionList Runat="server" SelectType="DropDown" ID="dpAnswer">
                    <Item Text="------------Please select--------------" Value="0" />
                  </mobile:SelectionList>
                  <mobile:TextBox ID="TxAnswerInput" Runat="server" />
               </ItemTemplate>
             </Choice>
           </DeviceSpecific>

现在想提取Qkey的text属性值,如何找到这个控件?谢谢

华-子的主页 华-子 | 初学一级 | 园豆:156
提问于:2011-03-10 17:36
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册