私のページにはバリデーターがあります:
<asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="IdentifySEDSED1TxtDate" ErrorMessage="Significant Event Date 1 is missing" ValidType="SEDate">*</asp:RequiredFieldValidator>
私はPage_Loadでそれを見つけました:(以下はウォッチウィンドウからのスクリーンショットです)
this.FindControl("rfv1") {Text = "*"}
rfv1 The name 'rfv1' does not exist in the current context
このコントロールは FindControl で取得できますが、ID を直接使用して取得することはできません。何が起こるのですか?