私はasp.netに本当に慣れていないので、これが本当に基本的な質問のように思えたら許してください。リピーターを含むasp.netページがあります。コードは次のとおりです。
<div class="formRow">
<asp:Repeater ID="uxStudentFormActive" runat="server">
<ItemTemplate>
<span style="font-weight:bold;" ><asp:Literal ID="uxFormName" runat="server" Text="#" /></span><br />
<asp:TreeView ID="uxFormHistoryList" runat="server" Target="_blank" />
</ItemTemplate>
</asp:Repeater>
</div>
を処理する私のvb.netページのサブは次のとおりですuxStudentFormActive.ItemDataBound
。
Protected Sub uxStudentFormActive_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles uxStudentFormActive.ItemDataBound
Dim dr As DataRowView = CType(e.Item.DataItem(), DataRowView)
If Convert.ToInt32(dr("FormId")) = 29 Then
...
End If
End Sub
aspx
ページが vb.net ページとどのようにやり取りするのか正確にはわかりません。私の質問は、その値が vb.net ページe
のサブに渡されている場所をどのように確認するのですか? uxStudentFormActive_ItemDataBound
前もって感謝します。