|
行 12: namespace word |
D:\Program Files\vs2005\Common7\IDE> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\1\3c6f3160\7793076b\App_Code.qsar9qpl.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\1\3c6f3160\7793076b\App_Web_5e6p2nsc.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\1\3c6f3160\7793076b\App_Web_5e6p2nsc.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\1\3c6f3160\7793076b\App_Web_5e6p2nsc.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\1\3c6f3160\7793076b\App_Web_5e6p2nsc.2.cs" Microsoft (R) Visual C# 2005 编译器 版本 8.00.50727.42 用于 Microsoft (R) Windows (R) 2005 Framework 版本 2.0.50727 版权所有 (C) Microsoft Corporation 2001-2005。保留所有权利。 d:\asp.net文件\News\1\Default.aspx.cs(912304,33): error CS0115: “ASP.default_aspx.FrameworkInitialize()”: 没有找到适合的方法来重写 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\1\3c6f3160\7793076b\App_Web_5e6p2nsc.0.cs(649,29): error CS0115: “ASP.default_aspx.GetTypeHashCode()”: 没有找到适合的方法来重写 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\1\3c6f3160\7793076b\App_Web_5e6p2nsc.0.cs(653,30): error CS0115: “ASP.default_aspx.ProcessRequest(System.Web.HttpContext)”: 没有找到适合的方法来重写 c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\1\3c6f3160\7793076b\App_Web_5e6p2nsc.0.cs(171,18): error CS0535: “ASP.default_aspx”不会实现接口成员“System.Web.IHttpHandler.IsReusable” c:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll: (与前一个错误相关的符号位置) |
[CODE]using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class DataGrid : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string connstr=System.Configuration.ConfigurationManager.AppSettings["connString"]; //引用config里面的东东
string sqlstr = "select * from table1";
DataView dv = null;
SqlConnection myconn = new SqlConnection(connstr);
SqlDataAdapter da = new SqlDataAdapter(sqlstr, myconn);
DataSet ds = new DataSet();
da.Fill(ds);
dv = ds.Tables[0].DefaultView;
this.GridView1.DataSource = dv;
this.GridView1.DataBind();
}
}[/CODE]
看见没,我这个就没有用命名空间吧.