protected void Button1_Click(object sender, EventArgs e) { if (this.TextBox1.Text.Length != 0) { int znamka = Int32.Parse(this.DropDownList3.SelectedValue); int model = Int32.Parse(this.DropDownList2.SelectedValue); int idStranke = Baza.DobiStranko((int)Session["Uporabnik"]); string uspeh = Baza.VnesiVozilo(znamka, model, Int32.Parse(this.TextBox1.Text), idStranke); this.peter.InnerHtml = uspeh; //Response.Redirect("index.aspx"); } }