Results 1 to 25 of 28
Thread: "textbox"
Hybrid View
-
29th March 2009 18:22 #1Registered User
Join Date: Mar:2009
Location: varna
Posts: 11
"textbox"
,
, "textbox" . "DataGridView" . MS Visual C# .NET. .
-
29th March 2009 20:06 #2
-
30th March 2009 00:45 #3
data adapter
-
30th March 2009 11:23 #4Registered User
Join Date: Mar:2009
Location: varna
Posts: 11
,
"Visual C# 2005 " , , o "DataGridView", "textbox". tedych, . , . worm4. , . , . !
-
30th March 2009 12:11 #5Registered User
Join Date: Apr:2004
Location: EU
Posts: 141
-
30th March 2009 14:24 #6
public SqlConnection myConnection;
this.myConnection = new SqlConnection("Data Source=1.2.3.4; Initial Catalog=bazatadanni; User ID=myuser; Password=mypass");
string queryString = "INSERT .......";
SqlCommand command = new SqlCommand(queryString, this.myConnection);
command.Connection.Open();
command.ExecuteNonQuery();
// mojesh da zatworish konekciqta tuk ako nqma da q polzwash poweche
command.Connection.Close();
-
10th April 2009 19:41 #7Registered User
Join Date: Mar:2009
Location: varna
Posts: 11
,
. tedich, ! . "INSERT....". .Last edited by lambo13; 11th April 2009 at 07:52.
-
10th April 2009 20:10 #8
"insert into tbltest (fld1, fld2,fld3) values ('" & txtTextBox.text & "', '" & cmbTest.Text & "', " & nudNumericUpDown.value & ");"
string .
NumericUpDown , .
....
-
12th April 2009 16:24 #9Registered User
Join Date: Mar:2009
Location: varna
Posts: 11
,
, . worm4! , . : "Operator '&' cannot be applied to operands of type 'string' and 'string' " "Error list". , . "&" ?Last edited by lambo13; 12th April 2009 at 16:44.
-
12th April 2009 18:22 #10
, worm4 Visual Basic .NET
.
#, + .
, sql injection ..
, - -
. . - .
-
12th April 2009 18:37 #11Registered User
Join Date: Mar:2009
Location: varna
Posts: 11
! . , SQL . , "SqlConnection myConnection"? tedych !
-
13th April 2009 11:00 #12
-
12th April 2009 23:06 #13
-
14th April 2009 02:09 #14Banned
Join Date: Nov:2007
Location: Sofia
Posts: 1,400
:
private void InsertData(string data)
{
string inserStatement = @"INSERT INTO CUSTOMER (NAME) VALUE @name";
SqlParameter parameter = new SqlParameter("@name", typeof (string));
parameter.Value = data;
using(SqlConnection connection = new SqlConnection("tvoqt_connection_string_k um_bazata_danni"))
{
connection.Open();
SqlCommand command = new SqlCommand(inserStatement,connection);
command.Parameters.Add(parameter);
command.ExecuteNonQuery();
}
}
, CUSTOMER NAME .
-
17th April 2009 00:53 #15Registered User
Join Date: Oct:2006
Location: Plovdiv
Posts: 305
- a - :
void InsertData() {
SqlConnection db = new SqlConnection("Data Source=1.2.3.4; Initial Catalog=bazatadanni; User ID=myuser; Password=mypass");
db.Open();
try {
SqlCommand cmd = new SqlCommand("insert into customers (name) values (@name)",db);
cmd.Parameters.AddWithValue("@name", txtCustomerName.Text);
cmd.ExecuteNonQuery();
} finally {
db.Close();
}
}
connection-a using garbagecollector-a .
lambo13, "" ? Delphi - , data-aware web html-aprepBut nI vrbLike adjHungarian! qWhat's artThe adjBig nProblem?
-
19th April 2009 14:54 #16Banned
Join Date: Nov:2007
Location: Sofia
Posts: 1,400
-
24th April 2009 02:59 #17Registered User
Join Date: Oct:2006
Location: Plovdiv
Posts: 305
-
17th April 2009 07:22 #18Registered User
Join Date: Mar:2009
Location: varna
Posts: 11
DiadoMraz e, C#, . .., , VC++ 6.0, "Visual C# ", "Visual C# ", " Visual Basic .NET". Standard C++. . , , , , . CV-ta. , . , CV , . .
. , .
-
17th April 2009 10:08 #19Registered User
Join Date: Apr:2004
Location: EU
Posts: 141
lambo13, . .
QuickStart Samples.
. (TextBox):
...\Samples\QuickStart\Winforms\Samples\ Data\Comboboxbinding
The sample in this subfolder binds a Windows Forms ComboBox control to an array of a custom class, binds a TextBox control to a typed DataSet, and then uses navigation buttons.
...\Samples\QuickStart\Winforms\Samples\ Data\Simplebinding
The sample in this subfolder binds a TextBox to a DataTable field and implements custom formatting and parsing events.
, .
-
17th April 2009 09:08 #20Registered User
Join Date: Nov:2005
Location:
Posts: 3,317
??
-
17th April 2009 09:22 #21Registered User
Join Date: Mar:2009
Location: varna
Posts: 11
drunky, , , . "" , . C++. , , - . , . -. , , .
-
17th April 2009 11:11 #22
.
, , ..
#, , , '' , .
------ , MSDN/. ++ - . SqlConnection/SqlCommand.
, . , ..
.
" # ".
, ..
lambo13, , , , , VStudio . "",
.
-
17th April 2009 17:38 #23Registered User
Join Date: Mar:2009
Location: varna
Posts: 11
, - ! , . . . !
-
17th April 2009 23:30 #24
, , ...
Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others
-
18th April 2009 17:09 #25Registered User
Join Date: Mar:2009
Location: varna
Posts: 11
, icaci. .

table1TableAdapter.Insert(textBox1.Text, textBox2.Text);
. .
"Insert()" . . /add new data sourse/.
TableAdapter INSERT. , .Last edited by lambo13; 18th April 2009 at 17:36. Reason:




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in