//驗証新增數據
protected void DetailsView1_ItemInserting(object sender, DetailsViewInsertEventArgs e)
{
string mtno = "";
if (e.Values[0] != null)
{
mtno = e.Values[0].ToString();
}
if (string.IsNullOrEmpty(mtno))
{
AjaxHelper.showAlert(UpdatePanel1, "請填寫材料編號!");
e.Cancel = true;
}
}