- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
private SqlConnection SqlConnection;
private SqlTransaction SqlTransaction;
private SqlCommand SqlCommand;
private SqlDataReader SqlDataReader;
protected void BtnRegister_Click(object sender, EventArgs e)
{
using(SqlConnection connection = new SqlConnection())
{
if(textBoxUsername != null)
{
if(textBoxPassword != null)
{
if(textBoxCountry !=null)
{
if(textBoxCity !=null)
{
SqlCommand.CommandText = "INSERT INTO SiteDB (Username, Password, Email, City, Country)"+
"VALUES ('textBoxUsername', 'textBoxPassword', 'textBoxCountry', 'textBoxCity')";
SqlCommand.ExecuteNonQuery;
}
}
}
}
}
}
Прислали недавно пример кода вместе с резюме на поизицию ASP.NET Developper.
guest 06.08.2011 18:03 # 0
IJobs 06.08.2011 18:06 # +1
guest 06.08.2011 18:31 # 0
Dummy00001 06.08.2011 19:35 # 0
bugmenot 06.08.2011 19:45 # +2
abatishchev 06.08.2011 19:45 # 0
absolut 06.08.2011 20:14 # +2
arthorias 09.08.2011 22:42 # 0
absolut 09.08.2011 22:56 # 0
Lure Of Chaos 10.08.2011 00:15 # 0
absolut 10.08.2011 06:19 # 0
guest 10.08.2011 08:50 # −2
опытный
roman-kashitsyn 06.08.2011 21:35 # +2
absolut 06.08.2011 23:15 # +2
ajukraine 11.08.2011 01:18 # +1
absolut 11.08.2011 10:31 # +1
ajukraine 11.08.2011 11:23 # 0
bugmenot 11.08.2011 19:27 # −2
sayidandrtfm 07.08.2011 06:20 # 0
absolut 07.08.2011 08:37 # 0
riactr 08.08.2011 10:45 # 0
guest 09.08.2011 18:39 # +2
guest8 09.04.2019 11:17 # −999