October 23, 2006

Setting SelectedValue of Cascading DropDown

For a cascading dropdown with such a definition:

< id="CascadingDropDownState" runat="server">< /cc1:cascadingdropdown >

< category="State" prompttext="Select State" selectedvalue="CO" servicemethod="getState" servicepath="GetWebServiceData.asmx" targetcontrolid="ddlState">< /cc1:cascadingdropdownproperties>

you can use this code to set selectedvalue from code:

CascadingDropDownProperties props = CascadingDropDownState.GetTargetProperties(ddlState);

props.SelectedValue = "CO";

You can also see the ASP.NET forum thread

1 comment:

Anonymous said...

Look at Our Nightfall darkness Prices at www.Pharmashack.com, The Imminent [b][url=http://www.pharmashack.com]Online Chemist's snitch on [/url][/b] To [url=http://www.pharmashack.com]Buy Viagra[/url] Online ! You Can also Know Gigantic Deals When You [url=http://www.pharmashack.com/en/item/cialis.html]Buy Cialis[/url] and When You You [url=http://www.pharmashack.com/en/item/levitra.html]Buy Levitra[/url] Online. We Also Hold a Consequential Generic [url=http://www.pharmashack.com/en/item/phentermine.html]Phentermine[/url] On account of Your Victuals ! We Relate away Course of study trace to [url=http://www.pharmashack.com/en/item/viagra.html]Viagra[/url] and Also [url=http://www.pharmashack.com/en/item/generic_viagra.html]Generic Viagra[/url] !