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

How Session use Cookies in State Management?

997


What are the advantages and disadvantages of session?

1061


What is web api config?

932


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

1067


How can we identify that the page is post back in asp net?

887


How can you send an email message from an asp.net web page?

922


What is cookieless session id explain in brief?

972


What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.

967


List all templates of the repeater control.

1015


What is the difference between page.registerclientscriptblock and page.registerstartupscript?

797


What is the default timeout for a cookie?

1003


Will the asp.net validators run in server side or client side?

1083


What are strong names?

976


Define data caching?

865


State differences between MVC and WebAPI

1065