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 / v.vijayakumar

Syntax:
INSERT INTO table name(column name,column name,column
name)values(values,values,values);
Example:
INSERT INTO
employee(Name,emp_id,designation)values('"+textbox1.text+"',"+textbox2.text+",'"+textbox3.text+"');


..................if u use Html control we must use
textbox1.value ..if u use asp.net controls we have to use
textbox1.text........

Is This Answer Correct ?    160 Yes 56 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how asp.net different from asp?

1153


What is csrf attack in asp.net?

1084


What is runat?

1112


Explain how can we inherit a static variable?

1101


What is hidden field in asp.net?

1175


Do you know about caching with the datasource controls?

939


What are the data controls available in asp.net?

1003


What is the difference between rest and restful?

1100


What is the difference between page directive include and action tag include?

991


What is applicatio domain?

1058


What is difference between singleton and single call?

1145


How would ASP and ASP.NET applications run at the same time on the same server?

2565


Explain the difference between authentication and authorization.

1110


What is autopost?

1040


How do we access view state value of this page in the next page?

1045