With your suggestion, I was able to find the request payload information and see what was going on.
I had to change @Html.DropDownList("Geography_GeoCountry"
to @Html.DropDownList("GeoCountry"
then it started working.
Thanks for your help!
I used ASP.NET Zero Power Tools to create a new Geography Entity. I'm able to change values in regular Text input boxes and save those fields.
Then I created a DB Table to store all available Countries to be able to select from a Dropdownlist. I am able to get the available countries to show up in the dropdown list. However, when I choose a country and hit "Save" it does not save the selected country to the DB.
[StringLength(ProfileConsts.MaxCountryLength, MinimumLength = ProfileConsts.MinCountryLength)]
public virtual string Country { get; set; }
[StringLength(ProfileConsts.MaxGeoCountryLength, MinimumLength = ProfileConsts.MinGeoCountryLength)]
public virtual string GeoCountry { get; set; }
This will save changes fine
<input class="form-control" id="Geography_Country" value="@Model.Geography.Country" type="text" name="country"/>
This does not save selected value
@Html.DropDownList("Geography_GeoCountry", new SelectList(Model.countrylist, "CountryId", "GeoCountry", Model.Geography.GeoCountry), "Select Country from List", new { @class = "form-control" })
Is there a JQuery Function I need to execute, to update the DTO? Any help would be much appreciated.
After applying the fix that @ismcagdas recommended here: https://github.com/aspnetzero/aspnet-zero-core/pull/3899/files/5a36a240b53342777a29d7fc4c11e5b57c5014aa
I had to apply the changes to both files: _DynamicEntityPropertyManager.js _DynamicEntityPropertyManager.min.js
Now it is working fine.
Using Muli-Tenant
I make a Role with everything disabled except the "Users" Section is checked.
Then I Create a new User with that Role.
When I log into the new user and then Navigate to Administration -> Users it pops up this error
I know I can enable the Dynamic Entity Properties and would not get this error. But I would prefer to not have the menu option "Dynamic Properties".