string querycheck = "SELECT sponcorid FROM Registration_Master WHERE regCode='" + temp + "'"; //string parent = (string)com.ExecuteScalar(); com = new SqlCommand(querycheck, con); com.CommandType = CommandType.Text; da = new SqlDataAdapter(com); DataTable dtcheck = new DataTable(); da.Fill(dtcheck); string parent = dtcheck.Rows[0]["sponcorid"].ToString();
temp
regCode
sponcorid
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)