更新时间:2023-08-17 17:44:28
IIRC您的问题,没什么大不了的
IIRC your question, its not a big deal
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
//Create object of WSGetCustomerCountryWise Object
localhost.WSGetCustomerCountryWise objGetCustomerCountryWise
= new localhost.WSGetCustomerCountryWise();
DataSet dsCustomer = new DataSet();
// Get the data from Webservice.
XmlElement elem = objGetCustomerCountryWise.GetCustomerCountryWise("USA");
// Load the XML to the Typed DataSet that you want.
XmlNodeReader nodeReader = new XmlNodeReader(elem);
dsCustomer.ReadXml(nodeReader, XmlReadMode.Auto);
GridView1.DataSource = dsCustomer;
GridView1.DataBind();
}
}
因此,此处将"美国"的值替换为国家/地区"下拉列表中选择的值.就这样. BTW单击解决方案链接 [
So here replace the value (USA) with Country dropdownlist selected value. That''s all. BTW Click the solution link[^] for more details