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
Describe the master page.
Explain the features that make asp.net more used framework? : asp.net mvc
How does ASP.NET framework maps client side events to Server side events.?
What is the purpose of App_Code folder in ASP.NET? Why we this?
What is microsoft windows sharepoint services?
What is fulltrust?
Who creates jsessionid?
can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?
Is LINQ performance wise better or using sqlcommand?
How do you secure your configuration files to be accessed remotely by unauthorized users?
What is css and what is it used for?
How does session id work?
Explain http handlers? Where we can use the http handlers?
Does asp.net still recognize the global.asa file?
What is a Cookie? Where is it used in ASP.NET?