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 the equivalent of date() and time() in asp.net?
What is route in web api?
How to comment out asp.net tags?
Explain page output caching?
How do you hide the columns?
What are resource file and how do we generate resource file?
How to do state management in ASP.NET?
What is viewstate? What does the “enableviewstate” property do?
What is asp.net globalization?
What is globalization and localization in asp net?
Can user control be stored in library?
Explain asp.net web forms.
What is synchronous and Asynchronous post back ?
What is the maximum amount of memory any single process on windows can address?
What are the event handlers that can be included in the Global.asax file?