标题:我要如何取得<TD>内的值?
取消只看楼主
wube
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:23
帖 子:1817
专家分:3681
注 册:2011-3-24
结帖率:98.24%
 问题点数:0 回复次数:0 
我要如何取得<TD>内的值?
*.aspx
程序代码:
<!-- ▼▼课程播放-个人播放课程▼▼ -->
<asp:Panel ID="pnlClassPlay" runat="server">
    <div align="right">
        <asp:LinkBut&#8203;&#8203;ton ID="lkbReturnToList" runat="server" Text="回前页" Font-Underline="True" />
    </div>
    <h4>
        CLASS PLAY</h4>
    <h3>
        课程播放</h3>
    <table width="720px">
        <tr>
            <td width="50%" align="right">
                阅读时间:
            </td>
            <td width="50%" id="TimerText" align="left">
            </td>
        </tr>
    </table>
    <table width="720px">
        <tr>
            <td>
                <video id="MyVideo" runat="server" controls="True" autoplayer="True" type="video/mp4">
                您的浏览去不支援 HYML5 标签</video>
            </td>
        </tr>
    </table>
</asp:Panel>
<!-- ▲▲查询列表-个人播放课程▲▲ -->


*.aspx.vb
程序代码:
Protected Sub ListView2_ItemCommand(sender As Object, e As System.Web.UI.WebControls.ListViewCommandEventArgs) Handles ListView2.ItemCommand
        Dim hdfFileListNo As HiddenField = e.Item.FindControl("hdfFileListNo")
        Dim hdfFileListSubNo As HiddenField = e.Item.FindControl("hdfFileListSubNo")
        Dim hdfFileName As HiddenField = e.Item.FindControl("hdfFileName")
        Dim strFilePath As String = ConfigurationManager.AppSettings(strCnnType & "BTA_Class_Files").ToString & "/" & hdfFileListSubNo.Value & "/" & hdfFileName.Value
        pnlMyClassList.Visible = False
        pnlClassPlay.Visible = True

        MyVideo.Attributes.Add("src", strFilePath)
        MyVideo.Attributes.Add("Width", "720px")
        MyVideo.Attributes.Add("Height", "600px")
        MyVideo.Attributes.Add("Autoplayer", "True")
    End Sub

'回前页
  Protected Sub lkbReturnToList_Click(sender As Object, e As System.EventArgs) Handles lkbReturnToList.Click
    Dim TimerText1 As HtmlControl = Page.Items.Item("TimerText")  'TimerText内的值我要如何取得?
    pnlClassPlay.Visible = False
    pnlMyClassList.Visible = True
    pnlEmpGroups.Visible = False
    Call LoadMyClass(0, Session("LoginNo"))
  End Sub


就差这步了...
搜索更多相关主题的帖子: table Sub Item Dim Attributes 
2017-06-28 15:37



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-479014-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.062171 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved