i want 2 pass values(enterd in textbox)to table in sql
server without using stored procedure in c#.plz tell me
code with an example.

Answer Posted / srinivas shahukaru

we havwe differnt ways to pass data to back end .we can pass
data in dis way also
cmd.Command Type=CommandType.Text;
then we can pass values values using inserrtquery in sql
server... insert into tablename values ('textbox1.text,...);

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the DataTableCollection?

801


What is the default Timeout for SqlCommand.CommandTimeout property?

737


What is serialization and de-serialization in .net? How can we serialize the dataset object?

715


What does ole stand for in excel?

846


What are the objects of ado.net?

767


What is the use of connection object in ado.net?

780


If a table contains 20000 records. In a page at each time 100 records to be displayed.

700


What is dbcontext and dbset in entity framework?

685


Explain the differences between oledb sql server, oledbdotnet provider?

750


How can we add/remove row's in "datatable" object of "dataset"?

772


What is the difference between SqlCommand and SqlCommandBuilder?

785


What are the steps you will take to improve performance? Will you use dataset or datareader?

742


What are the advantages of ado.net?

683


What is a sqldataadapter?

745


What are all features of ADO.Net?

740