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 page output caching?

519


List the asp.net validation controls?

519


Give some salient points of difference between request processor and request dispatcher.

605


How would you get asp.net running in apache web servers?

530


How will you load dynamic assembly?

526






Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

543


Which class is used to send an email message from an ASP.NET Web page?

534


Explain the disadvantages of viewstate?

564


Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?

525


What is asp net_sessionid?

631


How can we prepairing Interview

1878


Explain the boxing and unboxing concept in .net?

373


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

5670


Why should i prefer JSP over asp.net or any other web development language..??

1436


What do you mean by View State and what is its role?

524