sharepoint 2010 の「リンク」リストにレコードを追加しようとしています。アイテムを追加するための検証を行いたいです。このように書きました。
Google キーワードを含むリンクの入力を停止しようとしています。次のコードに何か問題がありますか。私は自分の練習のためにやっています。画像ではコードがはっきり出ていないと思います。ここに書き留めました。
if (properties.AfterProperties["vti_url"].ToString().Contains("google"))
{
properties.ErrorMessage = "You should not enter the google";
properties.Cancel = true;
}
追加後、properties.AfterProperties["URL"].ToString().Contains("google")
正常に動作しています。しかし、私のエラーページは見栄えがよくありません。これがスクリーンショットです。この問題に対して何をすべきか。