大家好,我做了一个简单的东东,我想让我添加好的的东西在显示的首页,单击标题在另一个页面显示出来。可是不成功,求高手指点。
	
		
			
 
					
				
			要显示的页面。
 
					
				
			该页面后台代码:
public partial class 新闻系统_NewsContent : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
        SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["North"].ConnectionString);
        conn.Open();
        SqlCommand cmd = new SqlCommand("NewsDetail", conn);
        cmd.CommandType = CommandType.StoredProcedure;
        SqlParameter paramNewsID = new SqlParameter("@NewsID", SqlDbType.Int);
        paramNewsID.Value = Convert.ToInt32(Request.QueryString["NewsID"]);
        cmd.Parameters.Add(paramNewsID);
        SqlDataReader dr = cmd.ExecuteReader();
        if (dr.Read())
        {
         TextBox1.Text = dr["NewsTitle"].ToString();
         TextBox2.Text = dr["NewsContents"].ToString();
        }
        else
        {
            Response.Write("对不起没有该新闻");
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("News.aspx");
    }
}

 
											





 
	     
											