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 Insert a TextBox value in to Sql database using
C#.Net coding

Answer Posted / jayatirtha joshi

assign the textbox valuu to a string than using sqlcommand
in c# writing insert querry . insert the value into the
database.
ex; sqlcommand cmd=new sqlcommand("insert into emp values
('"+textbox1.text+"'),con");
cmd.executenonquerry();

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to change the action name in ASP.Net MVC?

1065


mention what is the difference between ado.net and classic ado?

1089


What is the purpose of a web form?

1003


Is .net core faster than .net framework?

1080


What are the new enhancements done in default project template of asp.net mvc 4?

1036


What are the advantages of asp.net mvc?

1029


What are the possible razor view extensions?

983


What are authentication filters in web api?

1052


Explain Bundle.Config in ASP.Net MVC4?

1007


Does Tempdata hold the data for other request in ASP.Net MVC?

962


How large is the .net framework 3.0?

1021


How can I return string result from action in asp.net mvc?

1051


What is edm designer? : Entity framework

986


What is viewbag title?

937


What are scaffold templates in mvc?

1014