Hi,
I created a Web User Control with just a dropdown, listing a number of countries. One of the properties is DefaultValue to which I would like send a country to be displayed.
If I remove the quotes from strCountry, I get the error "Attribute values must be enclosed in quotation marks"
Dim strCountry as String = "Country 1".
<CountriesDropDown:CountriesDropDown ID="ddCountry" runat="server"
Width="216"
IsReadOnly ="false"
DefaultValue=strCountry
/>
Can anyone please help?
Thanks
I created a Web User Control with just a dropdown, listing a number of countries. One of the properties is DefaultValue to which I would like send a country to be displayed.
If I remove the quotes from strCountry, I get the error "Attribute values must be enclosed in quotation marks"
Dim strCountry as String = "Country 1".
<CountriesDropDown:CountriesDropDown ID="ddCountry" runat="server"
Width="216"
IsReadOnly ="false"
DefaultValue=strCountry
/>
Can anyone please help?
Thanks