Bug reports Found a bug? Post it here please.
Version 4.x > Bug reports > CountrySelector StateID View modes: 
User avatar
Member
Member
Ddorazio@wakefly.com - 12/12/2009 9:40:54 PM
   
CountrySelector StateID
Hi,

I'm using the CountrySelector control (/CMSFormControls/CountrySelector.acsx) in a custom Shopping Cart step (control inheriting CMS.EcommerceProvider.ShoppingCartStep). I am trying to save the CountryID and StateID on the Click postback event from a button on the same control. Unfortunately the StateID always returns 0, despite selecting a state under the USA country. Is this a bug or is there another method to getting the selected state?

Thanks,
Dave

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 12/17/2009 8:43:52 AM
   
RE:CountrySelector StateID
Hi Dave,

Could you please provide us with more details?

How do you retrieve the state id and where exactly?

The code snippets would helpful. Thank you.

Best regards,
Helena Grulichova

User avatar
Member
Member
Ddorazio@wakefly.com - 12/17/2009 11:11:44 AM
   
RE:CountrySelector StateID
Hi Helena,

I've actually already started a support ticket (#99228) with your support team. Thanks!

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 12/22/2009 7:39:14 AM
   
RE:CountrySelector StateID
Hi,

I have tested this behavior in Kentico CMS 4.x and CountrySelector form control returns proper values (StateID) according to selected State.

Best regards,
Miroslav Remias.