for (int i = 0; i < 9; i++)
{
Tz_Bud_Fur.IntRoomsTypeId = i + 1;
Tz_Bud_Fur.IntRoomsinUse = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_0")).Text.Trim());
Tz_Bud_Fur.IntRoomsGood = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_1")).Text.Trim());
Tz_Bud_Fur.IntRoomsInRepair = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_2")).Text.Trim());
Tz_Bud_Fur.IntRoomsUnderConstruct = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_3")).Text.Trim());
Tz_Bud_Fur.IntSingleSDesks = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_4")).Text.Trim());
Tz_Bud_Fur.IntDoubleSDesks = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_5")).Text.Trim());
Tz_Bud_Fur.IntThreeSDesks = Convert.ToInt32(((DevExpress.Web.ASPxEditors.ASPxTextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_6")).Text.Trim());
Tz_Bud_Fur.IntChairs = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_7")).Text.Trim());
Tz_Bud_Fur.IntTblForOneStudent = Convert.ToInt32(((System.Web.UI.WebControls.TextBoxTable1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_8")).Text.Trim());
Tz_Bud_Fur.IntTblForTwoStudents = Convert.ToInt32(((System.Web.UI.WebControls.TextBox)Table1.FindControl("txtNumberOfRoomsAndFurniture_" + i + "_9")).Text.Trim());
if (Tz_Bud_Fur.InsertRoomsAndFurnitureByType() == 0)
{
}