.aspx 测试时的问题,怎么解决?
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