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
How should I destroy my objects in asp.net?
What is the life-span of the items in the viewstate?
How does viewstate work?
Which authentication uses a combination of windows and iis authentication?
What is postback request?
How are sessions stored?
What are the event handlers that we can have in global.asax file?
What is redirecting behavior?
Where the cookie value is stored?
What are the new features implemented in ASP.NET?
How do you implement sql caching in asp.net?
What is difference between cookies and cache?
Where are session variables stored?
List down the sequence of methods called during the page load.
What does aspcompat="true" mean?