protected void btnServerAdd_Click(Object Sender, EventArgs e) { oTSM.Add(txtServerName.Text, Int32.Parse(txtServerPort.Text), Int32.Parse(Request.Form[hdnLocation.UniqueID]), SaveFile(), 1, 0, oTSM.Gets(1, 0, 1).Tables[0].Rows.Count + 1, (chkServerEnabled.Checked ? 1 : 0)); Redirect("saved=true"); }