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
Explain the difference between value type and reference type?
What is asp net_sessionid?
From which base class all web forms are inherited?
What is inproc and outproc?
How do you design a website with multilingual support in ASP.NET ?
Explain the overview of asp.net?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.
Explain the asp.net page life cycle.
What are cookies in your browser?
What is the purpose of using MVC programming pattern in ASP.NET?
What is the usie of activex control in .net?
What are the different kinds of assemblies?
Describe Segmentation With Paging?
What is break mode?
What are the Types of object in asp