RadInputPrompt.Show("Enter the number", MessageBoxButtons.OK, message, InputMode.Text, textBoxStyle, closedHandler: (arg) =>
{
int okButton = arg.ButtonIndex;
if (okButton == 0)
{
//do some check before submit
if (string.IsNullOrEmpty(arg.Text))
{
MessageBox.Show("Please input the number.");
return; //??
}
//submit
}
else
{
return;
}
});
私の質問は次のとおりです。送信前にいくつかのデータ検証(数値のみ、桁数など)を行います。
ユーザーからの入力が無効な場合、プロンプト入力画面がまだ残っていることを願っています。
「戻る」キーワードを使用すると、メイン画面に戻ります。
または、コード ビハインド ページではなく、このプロンプト画面で使用できる他の検証方法 (AJAX など) はありますか?
どうもありがとう!