473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Will it need any Webservice?

Hi all,
I've given a task.I have to get employee's Country,State and city.
When I select Country as India, In State dropdownlist it must list all the states in India, When I select the state it must list all the cities in that state.But How do I get the states and cities of all in my table to get it binded to the list?
Any Idea? Will it need any Webservice ? Plz Help.......
Thanks in Advance
Aug 22 '07 #1
5 1397
Shashi Sadasivan
1,435 Expert 1GB
Hi all,
I've given a task.I have to get employee's Country,State and city.
When I select Country as India, In State dropdownlist it must list all the states in India, When I select the state it must list all the cities in that state.But How do I get the states and cities of all in my table to get it binded to the list?
Any Idea? Will it need any Webservice ? Plz Help.......
Thanks in Advance
Use the EditalueChanged Event for the control and write your code in there to bind new values to your drop down lists

Get all the states,cities (respectively) and either use the items.Add to the control or create a list<string> and use the control.datasource to bind it.
Aug 22 '07 #2
Use the EditalueChanged Event for the control and write your code in there to bind new values to your drop down lists

Get all the states,cities (respectively) and either use the items.Add to the control or create a list<string> and use the control.datasource to bind it.
I Know the coding to bind to dropdownlist. But where will I get these data about all countries, states and cities. If I get these data then do I need to add one by one to the items collection.Thank u for your reply Shashi
Aug 22 '07 #3
Shashi Sadasivan
1,435 Expert 1GB
hi sudhaMurugesan,
What you are probably looking for is a webservice
http://www.synapticdigital.com/webservice/public/regions.asmx?op=listByCountry
i tried to dig around for one, i have never been good with searching webservices..a bit more study and you might get one that you need.
cheers
- Shashi
Aug 22 '07 #4
hi sudhaMurugesan,
What you are probably looking for is a webservice
http://www.synapticdigital.com/webservice/public/regions.asmx?op=listByCountry
i tried to dig around for one, i have never been good with searching webservices..a bit more study and you might get one that you need.
cheers
- Shashi
Thank You Shashi I will try for other webservice also.
Cheers
Aug 23 '07 #5
Shashi Sadasivan
1,435 Expert 1GB
Thank You Shashi I will try for other webservice also.
Cheers
Hi,
his is what i could find over the weekend:
http://community.devpinoy.org/blogs/cvega/archive/2006/06/02/3300.aspx

it gives you the country list, (picks it up from the windows registry)
I am unable to get the list of cities. migt need a webservice....or build you list as you learn i suppose!
Aug 25 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gaz | last post by:
How do I modify the Hello example that comes with the JWSDP-1.1 Tutorial so that it calls a different webservice (ie; an asp.net webservice) instead of the webservice I deploy as part of the Hello...
2
by: Ken Dopierala Jr. | last post by:
Hi, I saw that the webservice.htc behaviour is no longer being supported. Will web apps written using it still function when the XP service pack 2 rolls out? Thanks. Ken.
0
by: Craig G | last post by:
i am using existing webservice code. so i get the webservice project from SourceSafe onto my D: Drive i then create a virtual directory in IIS and point the path to the webservice code in D: -...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
4
by: jens Jensen | last post by:
I have just realised that i can no longer add web reference as i usually do when it is .net to .net. webservice-webservice client. When i use the "add web refrence " men with the url of the...
1
by: jens Jensen | last post by:
Hello , i'm calling a webservice generated with oracle webservice java tools. I'm not able to add a web reference to a .net client the usual way with visual studio 2005. I was therefore...
0
by: Joel | last post by:
This is the full background of my problem. I´m working with a client who connects to a secure webservice. I´m using VS 2003 .Net. with WSE 2.0 sp3 and the .Net 1.1 framework I got no access...
3
by: Pebble | last post by:
Hi folks, I have a WebService that simply acts as a thin wrapper to a .Net dll. Literally almost zero code in the WebService. Parameters passed to the WebService are simply used as...
0
by: Jeova Almeida | last post by:
Hello, I created a simple web service for testing purpose in Visual Studio 2005: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="WSTest" %> using System;
0
by: Jeova Almeida | last post by:
Hello, I created a simple web service for testing purpose in Visual Studio 2005: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="WSTest" %> using System;
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.