ASP.Net页面刷新,图片路径又为空
--------------------编程问答-------------------- 以上问题全部解决,现在的问题是if (sdr == 0)
{
ScriptManager.RegisterStartupScript(Button1, this.GetType(), "button1", "alert('文件上传失败!');", true);
if (this.TextBox1.Text == "")
{
ScriptManager.RegisterStartupScript(Button1, this.GetType(), "button1", "alert('请填写系列名称!');", true);
}
else if (this.txtTitle.Text == "")
{
ScriptManager.RegisterStartupScript(Button1, this.GetType(), "button1", "alert('请填写系列信息!');", true);
}
else if (this.FileUpload1.FileName == "")
{
ScriptManager.RegisterStartupScript(Button1, this.GetType(), "button1", "alert('请上传缩略图!');", true);
}
}
没有执行~~请高手指点 --------------------编程问答-------------------- 还是通过JS判断或验证控件
补充:.NET技术 , ASP.NET