获得 在使用soap客户端时,Apache HTTP SERVER已停止工作。 如果SOAP API url不存在再次附加屏幕截图错误 Getting this error
我正在使用带有php7的xampp v3.2.2。
我正在使用的代码
namespace WebApplication13
{
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
{
string constr = ConfigurationManager.ConnectionStrings["binddropdown"].ToString(); // connection string
SqlConnection con = new SqlConnection(constr);
con.Open();
SqlCommand com = new SqlCommand("select *from employee", con); // table name
SqlDataAdapter da = new SqlDataAdapter(com);
System.Data.DataSet ds = new DataSet();
da.Fill(ds); // fill dataset
DropDownList1.DataTextField = ds.Tables[0].Columns["FirstName"].ToString(); // text field name of table dispalyed in dropdown
DropDownList1.DataValueField = ds.Tables[0].Columns["id"].ToString(); // to retrive specific textfield name
DropDownList1.DataSource = ds.Tables[0]; //assigning datasource to the dropdownlist
DropDownList1.DataBind(); //binding dropdownlist
}
}
}
}
注意: - 相同的代码可以正常使用5.6。
提前致谢