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

Answers were Sorted based on User's Feedback



How to Insert a TextBox value in to Sql database using C#.Net coding..

Answer / 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

How to Insert a TextBox value in to Sql database using C#.Net coding..

Answer / abcd

sqlcommand cmd=new sqlcommand("insert into dept values
('"+txtbox1.text+"'),con");
cmd.executenonquerry();

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More Dot Net Framework Interview Questions

what is entity sql?

0 Answers   Microsoft,


Will the finally block get executed if an exception has not occurred

1 Answers   Siebel Systems,


I can't be bothered with all this CAS stuff. Can I turn it off

1 Answers  


Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

1 Answers  


what is scalar property?

0 Answers   Microsoft,


How to use multiple submit buttons in asp.net mvc?

0 Answers  


What is .net architecture?

0 Answers  


How do you register the dotnet component or assembly ?

1 Answers   Accenture, BirlaSoft,


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

0 Answers  


about triggers?

6 Answers   CSC,


what is the use of final method

3 Answers   TCS,


What is the difference between renderaction and renderpartial?

0 Answers  


Categories