Citat:
DelPjero: Totalni sam pocetnik,gde da odem u stored proceduri i izvrsim povezivanje?
S' obzirom na ovu tvoju recenicu, mou da zakljucim da ti odgovor o tome da koristis Store Procedure bas i ne pomaze puno :)
Za to sto ti zelis da uradis postoje vise resenja, izbor jednog od njih iskljucivo zavisi od specificnog slucaja na kome zelis da ga primenis.
Ja bi te savetovao da pogledas
http://www.asp.net/learn/dataaccess/ tu ces naci sve sto ti je potrebno.
Jedan od nacina bio bi
Code:
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
conn.Open();
SqlCommand comm = new SqlCommand("Insert into komentari (ime,prezime,komentar) Values ('" + txtIme.Text + "','" + txtPrezime.Text + "','" + txtKomentar.Text + "')", conn);
comm.ExecuteNonQuery();
conn.Close();
}
Shoot for the moon. Even if you miss, you'll land among the stars.
Les Brown