我在调试时出现这个问题如何解决??
下面是我的代码:
using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
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 _Default : System.Web.UI.Page
{
SqlConnection conn;
protected void Page_Load(object sender, EventArgs e)
{
conn = new SqlConnection("Data Source=(local);Initial Catalog=database1;uid=sa;pwd=");
conn.Open ();
//SqlCommand cmd=new SqlCommand ("select * from student",conn );
DataSet dgStudent=new DataSet ();
SqlDataAdapter daStudent=new SqlDataAdapter ("select * from student",conn);
daStudent.Fill (dgStudent ,"student");
GridView dag=new GridView ();
dag.DataSource = dgStudent;
dag.DataMember = "student";
}
protected void TextBox3_TextChanged(object sender, EventArgs e)
{
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
}
}