Código PHP:
SqlDataAdapter DaActInf;
SqlDataAdapter DaActTiDoc;
SqlDataAdapter DaActHis;
DataSet DSAct = new DataSet();
DaActTiDoc = new SqlDataAdapter("spConsAct", cadenaConexion);
DaActTiDoc.SelectCommand.CommandType = CommandType.StoredProcedure;
SqlParameter parameter = new SqlParameter("@docidentidad", SqlDbType.VarChar,30);
String doc1=System.Convert.ToString(TBIdentidad.Text);
parameter.Value= doc1;
DaActTiDoc.SelectCommand.Parameters.Add(parameter) ;
DaActTiDoc.Fill(DSAct, "TipoDocumento");
DaActInf = new SqlDataAdapter("spConsAct", cadenaConexion);
DaActInf.SelectCommand.CommandType = CommandType.StoredProcedure;
SqlParameter parameter1 = new SqlParameter("@docidentidad", SqlDbType.VarChar,30);
String doc2=System.Convert.ToString(TBIdentidad.Text);
parameter1.Value= doc2;
DaActInf.SelectCommand.Parameters.Add(parameter1);
DaActInf.Fill(DSAct, "InfPersonal");
DaActHis = new SqlDataAdapter("spConsAct", cadenaConexion);
DaActHis.SelectCommand.CommandType = CommandType.StoredProcedure;
SqlParameter parameter2 = new SqlParameter("@docidentidad", SqlDbType.VarChar,30);
String doc3=System.Convert.ToString(TBIdentidad.Text);
parameter2.Value= doc3;
DaActHis.SelectCommand.Parameters.Add(parameter2);
DaActHis.Fill(DSAct, "Historico");