Click here to Skip to main content
15,908,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i search a .dll class or web service and also want to see its use in .aspx page.
Mainly i want to fill the dropdownlist with the cities name of a particular country.
Posted
Comments
Pandya Anil 10-Nov-11 9:09am    
you looking for.. How to search .dll/web service from aspx pages (asp.net) ?

or How to bind dropdownlist within asp.net ?
Vishwajeet Singh Chouhan 10-Nov-11 23:25pm    
i search a dll/ webservice and also want to see how i used it in my project
[no name] 10-Nov-11 9:16am    
Your question is not clear. Describe what you are doing, what you want to do any errors or difficulties you are encoutering
Vishwajeet Singh Chouhan 10-Nov-11 23:23pm    
My problem is i want to bind the mane of the cities in dropdownlist according to the country name ,but i did not want to fill the name manually so i am searchinching for a dll class or a web service by which i can perform this activity in the registration page of my website

1 solution

IIRC your question, its not a big deal
C#
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();
}
}
So here replace the value (USA) with Country dropdownlist selected value. That's all. BTW Click the solution link[^] for more details
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900