Hello, I have pass the value of a row of data to another page like this:
private void BindControlvalues()
{
con = new SqlConnection(connString);
con.Open();
cmd = new SqlCommand("select * from newsevent2 where ID=" + userid, con);
da = new SqlDataAdapter(cmd);
con.Close();
ds = new DataSet();
da.Fill(ds);
A.Text = ds.Tables[0].Rows[0][1].ToString(); //title
C.Text = ds.Tables[0].Rows[0][6].ToString(); //htmleditor
con = new SqlConnection(connString);
con.Open();
}
and display it like this:
<div
<b><asp:Label ID="A" runat="server"/></b>
<br />
<br />
<p>News & Events</p>
<br />
<p><asp:Label ID="C" runat="server"/></p>
</div>
The html content have someone text where it is full sentence then next paragraph/ne ...
Go to the complete details ...