Data Binding

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skbalahere
    New Member
    • Jun 2007
    • 2

    #1

    Data Binding

    Hi, I am new to .net i have a web form having drop down lists of country and state
    The user has to select the country. I want to know how to update the state list according to the country
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Originally posted by skbalahere
    Hi, I am new to .net i have a web form having drop down lists of country and state
    The user has to select the country. I want to know how to update the state list according to the country
    You will need to pass the country selected as a parameter to a stored procedure that will give the states for a country. Save the result set returned by the stored procedure into a dataset then use this dataset as the datasource of your state drop down list.

    Nathan

    Comment

    • Paulson
      New Member
      • Apr 2007
      • 63

      #3
      Originally posted by skbalahere
      Hi, I am new to .net i have a web form having drop down lists of country and state
      The user has to select the country. I want to know how to update the state list according to the country

      HI

      Yah natera is correct and you can do this by passing the key of country selected in OnselectedIndex Changed event

      bye Paulson.

      Comment

      Working...