protected void Button1_Click(object sender, EventArgs e) { if (this.TextBox1.Text.Length > 0) { int idv = Int32.Parse(this.DropDownList1.SelectedValue); int idp = Int32.Parse(this.DropDownList2.SelectedValue); int dan = Int32.Parse(this.DropDownList3.SelectedValue); int mes = Int32.Parse(this.DropDownList8.SelectedValue); int leto = Int32.Parse(this.DropDownList5.SelectedValue); int ura = Int32.Parse(this.DropDownList6.SelectedValue); int min = Int32.Parse(this.DropDownList7.SelectedValue); string opis = this.TextBox1.Text; string rez = Baza.VnesiNarocilo(idv, idp, ura, min, dan, mes, leto, opis); if (rez == "") { Response.Redirect("index.aspx"); } else { this.peter.InnerHtml = rez; } } }