会社のいくつかのプログラムを配置する必要があり、大規模なソフトウェアシステムの開発を行うためには、良い書き込みの重要な例であり、オーダーのセキュリティチェックに入力インタフェースの内容を実行するために、ソフトウェアシステムのセキュリティを強化するには、以下のプログラムを実行しているの影響です。
以下にセキュリティチェックコードの参照
private bool CheckInputSearch()
{
bool result = true;
if (!BaseCheckInput.SqlSafe(this.txtSearch.Text))
{
this.txtSearch.SelectAll();
this.txtSearch.Focus();
result = false;
}
return result;
}
private void btnSearch_Click(object sender, EventArgs e)
{
if (this.CheckInputSearch())
{
// 设置鼠标繁忙状态,并保留原先的状态
Cursor holdCursor = this.Cursor;
this.Cursor = Cursors.WaitCursor;
this.FormLoaded = false;
// 设置查询条件
this.Search();
this.SetSearch();
this.FormLoaded = true;
// 设置鼠标默认状态,原来的光标状态
this.Cursor = holdCursor;
}
}
ます。https://my.oschina.net/iwenr/blog/227608で再現