我有一个带有以下代码的usercontrol,它导出状态,从运行时查询到页面的日期。同样,我希望从表格本身获得一个标题名称。它应该出现在“测试批准”下面。我需要在“任务批准”下方获取标题'格。
<div>
<div >Task Approvals</div>
<div class="tableCaption"> //Need to get caption here
</div>
<div >
<div class="tableCaption"></div>
<asp:Panel ID="NoApprvlPnl1" runat="server">
<div style="padding:5px 0px 5px 0px;"><strong>* None *</strong></div>
</asp:Panel>
<asp:Panel ID="ApprvlPnl1" runat="server">
<asp:Repeater ID="ApprvlRepeater1" runat="server">
</asp:Repeater>
</asp:Panel>
</div>
<div class="lmbottom"></div>
</div>
我用来获取这些字段的查询是:
Dim Qry = From x In db.Approvals _
Join y In db.Tasks On y.TASK_ID Equals x.TASK_ID
Join t In db.Trig On t.TRIGGER_ID Equals x.TRIGGER_ID
Where x.TASK_ID = thisTaskId _
And x.APPROVAL_RQST_ID = GetRqstID(thisTaskId) _
Select ApprvlLbl = GetUserDescr(x.APPROVER_ID), CURRSTATUS = GetActDesc(x.ACTION_STATUS), Appcaption = t.EMAIL_GROUP
我希望得到这样的应用程序&#39;作为听众文本。 感谢
答案 0 :(得分:0)
通过添加以下行
获得 <div class="tableCaption"> //Need to get caption here
<span style="padding:5px 0 5px 8px;"><strong><%=Caption%></strong></span>
</div>