Click here to Skip to main content
15,915,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to display the product recorder data having record value equal to 750.The data will be fetched from sql database.I want to show the data in textboxes which are there in asp.net
Posted

Hi,

Here is the article to do this using N-Tier architecture.

Insert, Update, Search and Delete (CRUD operation) using ASP.Net and MySQL[^]

It's using MySQL but i think you can do that in SQL Server as well.

Best luck.
 
Share this answer
 
you can used simply execute scallor property of ado .net like:-
C#
cnn.Open();
                cmd = new SqlCommand(sql, cnn);
                Int32 value= Convert.ToInt32(cmd.ExecuteScalar());
                cmd.Dispose();
                cnn.Close();


when your value comes in value than you set it into the textbox.text=vak=lue.tostring()


also read following link:-

http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.executescalar.aspx[^]


http://csharp.net-informations.com/data-providers/csharp-sqlcommand-executescalar.htm[^]

if your problem persist please give your comments
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900