How to Insert a TextBox value in to Sql database using C#
coding?
Answer Posted / premkumar.m
in asp.net webform,
first assign namespace like using system.data.sqlclient;
insert coding
sqlcommand cmd = new sqlcommand("insert into address values
('"+ textbox1.text +"', "+ textbox2.text +")",
connectionstring);
note:
Is This Answer Correct ? | 145 Yes | 56 No |
Post New Answer View All Answers
What are the two types of web pages?
What is asp.net futures?
What is a gridview in asp.net?
What is a session in programming?
What should you do is you want to remove an existing component but would like to make some funtionalities?
State differences between MVC and WebAPI
How do I know asp.net mvc version? : Asp.Net MVC
Explain the difference between overriding and overloading?
Explain the difference between debug.write and trace.write? When should each be used?
What is difference between session and cookies?
What is a multilingual website?
What is autopostback true?
Explain the advantages of passport authentication.
How do you implement sql caching in asp.net?
Is it possible to create web application with both webforms and mvc?