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

Answer Posted / sona

insert into emp(empname) values('"+textbox1.Text+"');

Is This Answer Correct ?    159 Yes 62 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between mechine.config and web.config?

705


Apart from IDE what are the enhancements in asp.net 2.0?

1604


Can we have multiple web config files for an asp.net application?

508


What are the asp.net server side objects?

500


Which method is used to force all the validation controls to run?

526






What are the various types of cookies in asp.net?

520


How to integrate angular 8 with asp.net mvc 5? : Asp.Net MVC

475


What does a switch do?

518


Why do we need url encoding?

499


Can you change a master page dynamically at runtime? How?

482


What is the use of execute non query in asp.net?

467


9. Why should we hire you over the others waiting to be interviewed?

2113


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

604


What are the new features implemented in ASP.NET?

580


Explain different types of validators in asp.net?

513