|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
Is it possible to insert value of TextBox into Sql database using C sharp? Hi Friends, Is it possible to insert value of TextBox into Sql database using C sharp ? I am trying to code the c sharp program to insert value of TextBox into Sql database, but I am not yet successful in it. I want to know your suggestion over this, please don't hesitate to suggest. I am waiting for your reply. |
#2
| |||
| |||
Re: Is it possible to insert value of TextBox into Sql database using C sharp? Hi, Use following statement in your program to insert the textbox value and execute that program. Quote:
|
#3
| |||
| |||
Re: Is it possible to insert value of TextBox into Sql database using C sharp? Hello Friend, Yes it is possible to insert value of TextBox into Sql database using C sharp. I have tried this try of program many times. But code for this program is quit complicated to understand, See below: Quote:
|
#4
| |||
| |||
Re: Is it possible to insert value of TextBox into Sql database using C sharp? Hi, I think you need to use the "insert" command of SQL in your C sharp program. First define the connection string for SQL database connection. Then you need to assign the "insert" command to the defined connection string. Following is the syntax and example for the same: Quote:
|
#5
| |||
| |||
Re: Is it possible to insert value of TextBox into Sql database using C sharp? Example of inserting textbox value into the sql: Quote:
|
#6
| |||
| |||
Re: Is it possible to insert value of TextBox into Sql database using C sharp? I have used below sqlcommand statement in my c sharp program for sql database connection. Copy this sqlcommand statement and replace the the values of "txtbx1" and "txtbx2" with your defined names for text boxes: Quote:
|
![]() |
|
Tags: c sharp code, c sharp program, insert textbox, insert textbox value, insert value, sql, sql database, textbox |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
insert into select statement for database | Aidan 12 | Software Development | 5 | 09-03-2010 10:08 PM |
Insert DataGridview into database | Neil'o | Software Development | 3 | 24-09-2009 11:28 AM |
How do I create a textbox in vb that lets you insert tabs? | Chandrakant81 | Software Development | 3 | 26-02-2009 09:59 PM |
How can I bind textbox with column in SQL database? | SushmitaP | Software Development | 3 | 19-02-2009 10:57 PM |
Insert image in access database from vb 6.0 | Vireshh | Software Development | 2 | 22-01-2009 09:06 PM |