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

Name the property of the textbox which cannot be changed at runtime?

926


What are custom attributes in c#?

840


Explain the working of serialization?

847


Does c# support a variable number of arguments?

956


Why is it important to override gethashcode when equals method is overridden?

978


What is eager and lazy loading in c#?

935


What types of object can I throw as exceptions?

893


What is .edmx file?

930


Name some string escape sequences in c#.

997


Is an interface a type c#?

925


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

857


How do destructors and garbage collection work in c#?

890


Is hashset ordered c#?

913


What does namespace mean?

902


How can we set the class to be inherited, but prevent the method from being over-ridden?

934