On Mon, May 3, 2010 at 6:42 AM, Alen Alexander <[email protected]> wrote: > Frnds, > My Web page contains multiple Label controls(10 in total). I want to fill > all those controls with the values extracted from database. > But corresponding labels are not getting filled with Right data from > database. > I am using ASP.NET with C# and SQL Server 2005. > My Code for getting values are.. > cmd = new SqlCommand("select * from mid_zone where p_id=2"); > rd= cms.ExecuteNonQuery(); > while(rd.Read()) > { > //reading values > } > Please help... > Thanks in Advance > -- > > ------------------------------------
Different ways to do it. Here is a buch to pick from: <http://lmgtfy.com/?q=c%23+Data+from+database> -- Stephen Russell Sr. Production Systems Programmer CIMSgts 901.246-0159 cell
