Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Mention few asp.net validators.

952


What do you mean by serialize?

930


how to include timer or counting time to display next page in asp.net

2093


Are cookies stored on server or client?

913


If 200 is for all successful operation then why do we have 201 response codes?

861


What is the use of service provider?

971


Can the unique key be null?

1025


How to sign out from forms authentication?

987


Fetch one page value to another page without using state-managment ?

850


How would you enable impersonation in the web.config file?

944


Briefly describe the role of global.asax?

929


Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

922


How can u debug your .net application?

995


What is the difference between Session and response.Redirect?

1085


Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

936