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
In razor syntax, what is the escape sequence character for @ symbol?
differences between poco, model first and data first approach?
What are the advantages of asp.net mvc?
What is net framework 3.0 ?
What is the meaning of unobtrusive javascript? Explain us by any practical example.
What is ViewStart Page in ASP.Net MVC?
Explain the request flow in asp.net mvc framework?
What is connected scenario? : Entity framework
Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?
mention what is the key advantage of using entity framework or ef?
Can you explain model, controller and view in mvc?
What is the use of the default route?
Which version of the common language runtime (clr) does the .net framework 3.0 use?
What is the difference between model view and controller?
Explain the new features 3.5 framework against with the tool?