protected void Button1_Click(object sender, EventArgs e) { if (this.TextBox1.Text.Length > 0 && this.TextBox2.Text.Length > 0) { string rez = Baza.DodajPoslovalnico(Int32.Parse(this.DropDownList1.SelectedValue), this.TextBox1.Text, this.TextBox2.Text); if (rez == "") { Response.Redirect("index.aspx"); } else { this.peter.InnerHtml = rez; } } }