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

How to generate strong name key file or which command is used to generated strong name key file?

940


Do vs while c#?

877


Explain code compilation in c#.

958


What are delegates and why are they required?

979


How do you escape a character?

939


Write a sample code to write the contents to text file in c#?

894


What is access modifier in c#?

894


What is difference between string and stringbuffer in c#?

942


What is entity framework c#?

860


What is a private class in c#?

1105


What are the steps to create an assembly and add it to the gac?

874


Does c# support properties of array types?

922


What is the .net datatype that allows the retrieval of data by a unique key?

897


Is and as keyword in c# net?

965


Is an interface a type c#?

949