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
Mention few asp.net validators.
What do you mean by serialize?
how to include timer or counting time to display next page in asp.net
Are cookies stored on server or client?
If 200 is for all successful operation then why do we have 201 response codes?
What is the use of service provider?
Can the unique key be null?
How to sign out from forms authentication?
Fetch one page value to another page without using state-managment ?
How would you enable impersonation in the web.config file?
Briefly describe the role of global.asax?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
How can u debug your .net application?
What is the difference between Session and response.Redirect?
Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?