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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is .net core framework?

742


Explain RenderBody and RenderPage in ASP.Net MVC?

814


I have 2+ years of fake experience,actually i could not answer for project questions..?how can i answer please suggest me..?

2871


Explain the new features 3.5 framework against with the tool?

711


Describe the .net framework architecture.

820


Explain Sections is ASP.Net MVC?

808


What is the .net framework 3.0 (formerly winfx)?

743


How we can add the CSS in ASP.Net MVC?

796


Can you Write the GC(Garbage Collector) Algoritham in .NET? (But not Explination of Working of GC).

2045


What is the use of razor view engine?

733


Is .net framework 4.8 the last version?

771


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

796


What is Separation of Concerns in ASP.NET ASP.Net MVC?

827


What are the 3 segments of the default route, that is present in an ASP.NET MVC application?

825


Explain the advantages of asp.net mvc over asp.net?

845