public bool checking(string ipaddress) { textBox2 = ipaddress; DataCls obj_data = new DataCls(); DataSet ds = new DataSet(); ds = obj_data.GetAlldata("select * from TotalALLSignatures where [IPAdd1]='" + ipaddress + "'"); if (ds.Tables[0].Rows.Count > 0) { textBox3 = ds.Tables[0].Rows[0][5].ToString(); textBox4 = "Active"; return(true); } else { textBox3 = "Suspective"; textBox4 = "Action Closed"; return(false); } }
public bool checking(string ipaddress) { DataCls obj_data = new DataCls(); DataSet ds = new DataSet(); ds = obj_data.GetAlldata("select * from TotalALLSignatures where [IPAdd1]='" + ipaddress + "'"); if (ds.Tables[0].Rows.Count > 0) { //textBox3.Text = ds.Tables[0].Rows[0][5].ToString(); //textBox4.Text = "Active"; iresult = true; } else { // textBox3.Text ="Suspective"; //textBox4.Text = "Action Closed"; iresult = false; } return(iresult); }