Thursday, July 4, 2019

Using google places API with ASP.net Server Controls


 When you are trying to using Google places API on a ASP:TextBox it will give you following error.

InvalidValueError: not an instance of HTMLInputElement

 Reason for this is APS.net creating a client control as a TextArea not as an input field. Current version of Google Places API not supporting TextAreas for some reason.

But good news is you can still use ASP:TextBox with Google Places API. Only change you should make is set the TextMode of your ASP:TexBox as search.


TextMode = "Search"

 

No comments:

Post a Comment