Hi. It’s very informative. I have a usecase that is required to make an Ajax call to the google-city-list api once user enter postal code, then we need to auto populate city and the country on the registration page dropdown fields, then state should be auto populate once user choose the city. If there are multiple cities and the countries for the same zip code, then populate list of cities in the dropdown and country dropdown, but for the country dropdown field must be append with “not found or other” option during multiple countries in the backend api response. Any helpful references and thoughts on this usecase ?
Great explanations. I followed step by step and it worked for me. The one thing I had issue with that wasn't clear is in the js file you have to make sure data.id and data.name match the names as they are in the model. In my case it was data.id and data.transactionTypeName.
Pls make a video on how to add the country, state and city file
ปีที่แล้ว
Great job, one question, what if there are some other controls that have DataAnnotations like required but after the ajax calls the messages errors don´t display anymore, how could send all the validations messages in dataannotations again? thanks
Thanks for your nice tuttorial. could you explain how to work with cascading dropdown in edit menu i want the drop down lists to be selected as what i selected in create page
@@rajaji83 I had this problem as well. It took me a minute to figure it out but you have to make sure this line of code $('#countries').append('' + data.name + '' (in the js file) that data.id and data.name are the model field names. In my case it was data.id and data.transactionTypeName. Hope this helps.
Server Certificate error can also be fixed with ;Encrypt=False (in case of sql server authertication) "ConnectionStrings": { "DefaultConnection": "Data Source=YORK;Initial Catalog=DBONE;Persist Security Info=True;User ID=sa;Password=@password;Encrypt=False" },
Hi. It’s very informative. I have a usecase that is required to make an Ajax call to the google-city-list api once user enter postal code, then we need to auto populate city and the country on the registration page dropdown fields, then state should be auto populate once user choose the city. If there are multiple cities and the countries for the same zip code, then populate list of cities in the dropdown and country dropdown, but for the country dropdown field must be append with “not found or other” option during multiple countries in the backend api response. Any helpful references and thoughts on this usecase ?
Thank you very much It's useful for me
Thanks for your valuable feedback and support 👍
Great explanations. I followed step by step and it worked for me. The one thing I had issue with that wasn't clear is in the js file you have to make sure data.id and data.name match the names as they are in the model. In my case it was data.id and data.transactionTypeName.
Pls make a video on how to add the country, state and city file
Great job, one question, what if there are some other controls that have DataAnnotations like required but after the ajax calls the messages errors don´t display anymore, how could send all the validations messages in dataannotations again? thanks
Jabardast
Thanks for your nice tuttorial.
could you explain how to work with cascading dropdown in edit menu i want
the drop down lists to be selected as what i selected in create page
thanks
Great Job explaining. can you Please provide source code link
hello! how can I cascade this DropDownList in the Create view?
I'm in error. How to fix if in the first sheet when outputting it writes: undefined
did you find any solution to it
@@rajaji83 I had this problem as well. It took me a minute to figure it out but you have to make sure this line of code
$('#countries').append('' + data.name + '' (in the js file) that data.id and data.name are the model field names. In my case it was data.id and data.transactionTypeName. Hope this helps.
When I return JsonResult(countries) it shows error JsonResult is not a constructor
why it's showing blank? I can't see any dropdown list?
how can resolve
Server Certificate error can also be fixed with ;Encrypt=False (in case of sql server authertication)
"ConnectionStrings": {
"DefaultConnection": "Data Source=YORK;Initial Catalog=DBONE;Persist Security Info=True;User ID=sa;Password=@password;Encrypt=False"
},
jquery is not working
can u explain in Hindi ?