客户端:
protected void Button2_Click(object sender, EventArgs e)
{
string str = "";
stuInfo1.StuName = "test";
str = ser.HelloStu(stuInfo1);//传递webservice中的实体类
}
WebServices端:
[XmlInclude(typeof(Student))]
[WebMethod]
public void HelloStu(Student stuInfo)
{
stuInfo.StuName = "改变了!";
return stuInfo.StuName;
}
---------------------------------------------------------
请问,如何做到客户端的stuInfo1的StuName值被改变?
阿波罗的战车
吃鸡游戏