求救!!!请问各位遇到过这种情况没有?
if (txtSeachYear.Text == "")
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('年份不能为空')", true);
}在本地服务器测试完全可以弹出提示信息,但是传到服务器上以后,就没反应,服务器是windows 2000系统
if (txtSeachYear.Text == "")
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('年份不能为空')", true);
}在本地服务器测试完全可以弹出提示信息,但是传到服务器上以后,就没反应,服务器是windows 2000系统
解决方案 »
- panel显示问题
- 将对象序列化为json格式或byte[]存储到数据库,两种方式哪种好些?
- 关于objectdatasource数据源带参数问题
- 怎么安装ASP.NET Reports Starter Kit ?
- 我有一个项目,希望所有的页面都不在缓存,我不想在第一个面都写 Response.Cache.SetNoStore() 有简单办法吗?急。
- 如何往数据库中插入一条时间记录
- 用c#怎么获得当前的时间???
- 正则式的问题,求助
- 在response.redirect()后面如何来传递数组?在另外的页面又如何接受这个数组???请指教!!!
- 新手问一个datagrid简单问题>?
- jquery formValidator用法
- Repeater 绑定
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('年份不能为空');", true);
}
之前是不是有一个没有名称的执行了?就是第3个参数为空的ScriptManager.RegisterStartupScript
改成false试试,如:
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "<script>alert('年份不能为空')</script>", false);
改成false试试,如:
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "<script>alert('年份不能为空')</script>", false);
这种方式也试了,本地行,一旦传到服务器上,还是不行,没反应,任何信息不提示