Server Error in '/' Application.
--------------------------------------------------------------------------------Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0234: The type or namespace name 'ScriptManager' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)Source Error: Line 35: //page.ClientScript.RegisterStartupScript(page.GetType(), "message", "<script language='javascript' defer>alert('" + msg.ToString() + "');</script>");
Line 36: string strMessage = "alert('" + msg + "')";
Line 37: System.Web.UI.ScriptManager.RegisterStartupScript(control, control.GetType(), null, strMessage, true);
Line 38: }
Line 39:
Source File: c:\Inetpub\wwwroot\App_Code\Tool\MessageBox.cs Line: 37
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
--------------------------------------------------------------------------------Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0234: The type or namespace name 'ScriptManager' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)Source Error: Line 35: //page.ClientScript.RegisterStartupScript(page.GetType(), "message", "<script language='javascript' defer>alert('" + msg.ToString() + "');</script>");
Line 36: string strMessage = "alert('" + msg + "')";
Line 37: System.Web.UI.ScriptManager.RegisterStartupScript(control, control.GetType(), null, strMessage, true);
Line 38: }
Line 39:
Source File: c:\Inetpub\wwwroot\App_Code\Tool\MessageBox.cs Line: 37
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
解决方案 »
- 这个问题真的很难,多级分类如何排序的问题?
- ajax 得不到值
- 我希望动态添加5个Button,然后调用一个Click方法,已经定义好了,请问为什么不执行其事件中的代码,谢谢指点
- 求助不用DATAGRID分页的代码??
- 孟子章、思归等高手进来看看~~有关多级权限分配问题~~~~~~~~~
- 如何实现页首上的导航栏?
- ashx文件,用get方式可以正常返回数据,post方式,返回“500:Internal Server Error”
- 有点难的问题
- ★★★急求点拨:怎么把doc文件存入数据库?
- 网站首页全局搜索
- 如何取得一个月有哪些星期组成?
- 我给一个runat=server的DIV的onClick事件注册到.cs文件中处理,运行进出现Microsoft JScript运行时错误
public static void AjaxShow(Control control, string msg)
{
//page.ClientScript.RegisterStartupScript(page.GetType(), "message", "<script language='javascript' defer>alert('" + msg.ToString() + "');</script>");
string strMessage = "alert('" + msg + "')";
System.Web.UI.page.ClientScript.RegisterStartupScript(control, control.GetType(), null, strMessage, true);
}
怎么改啊,不太清楚,请讲具体点,谢谢!!