protected void Pay_Click(object sender, EventArgs e) { InsertBooking is1 = new InsertBooking(); GetBooking gb = new GetBooking(); int size = gb.getsize(); Label5.Text = size.ToString(); size++; string content = "<book><book_id>" + size + "</book_id><cin_id>" + DropDownList3.SelectedValue + "</cin_id><date>" + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:sszzz") + "</date><mov_id>" + DropDownList1.SelectedValue + "</mov_id><no_of_seats>" + DropDownList2.SelectedValue + "</no_of_seats><total>" + Label4.Text + "</total></book>"; // content = "sjzdkhdkjhkjjdh" + DropDownList3.SelectedValue+"lakdkjhdskjhkj"; Label5.Text = content; is1.addBooking(content); //Label5.Text = content; Response.Redirect("pay.aspx?book_id=" + size); }