テキストボックスへのエントリが整数であることを確認するRegularExpressionValidatorを作成しようとしています(「。」や「、」は含まれず、「500」などの整数値のみが含まれます)。
しかし、私はこれに遭遇しました:
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The server tag is not well formed.
コードは次のとおりです。
<asp:TextBox ID="Paymenttb" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID ="PaymentValidator" runat="server" ControlToValidate="Paymenttb"
ErrorMessage="Payment must be of type Int (No "." or "," for example)." ValidationExpression="^\d+$">*</asp:RegularExpressionValidator>
これの問題は何ですか?私は周りを検索しましたが、これがうまく形成されない理由を見つけることができません。