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 is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
What is _viewstart?
What is ispostback method in asp.net?
1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
What is a server cookie?
Disable Mouse right click on web page in asp.net?
What are asp.net web forms?
Explain the page lifecycle of an asp.net mvc? : asp.net mvc
Is asp.net mvc still used? : Asp.Net MVC
What is the concepts of globalization and localization in .net?
What are the differences between application object and session object?
What are the server controls in asp.net?
Explain difference between dataset and datareader?
How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?