Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to retrive a TextBox value in to Sql database using C#
windows form application coding

Answer Posted / shikha kalyan

If you want to store value of a textbox in SQL Server
database then you should use an Insert query:

Let the textbox name be textbox1

Insert into <tablename>(<fieldname>) values('"+textbox1.Text+"')

Eliminate ' if textbox does not contain a string value.

Is This Answer Correct ?    18 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What Is The Difference Between The System.array.copyto() And System.array.clone()?

957


Name some string escape sequences in c#.

990


Who benefits from ajax?

935


Explain the security with aop?

1006


Can we assign null value to integer?

826


Can main method be final?

859


What does console readkey do in c#?

855


What is default value of bool in c#?

904


What is ienumerator c#?

815


In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?

811


What is cls, cts and clr in net?

854


What are the two uses of a ‘using’ statement in c#?

898


What is enumerable in c#?

836


What is class and object c#?

853


What do you mean by serialization in .NET?

963