Base solution for your next web application

Activities of "paulg"

The only code I have put on Tenants > _CreateModal.cshtml is the following code:

<span>Location:</span>
<input type="text" id="txtPlaces" style="width: 250px" placeholder="Enter a location" />

No other changes. The script tags are on the index page, also no other modifications here. I am basically using a brand new aspnetzero, and just trying to get the code in my first post to work. I am able to do that on the index page, but I dont know which of this code need to go on the Modal page in order for it to work on the Modal page.

Thanks, so I now have all the code on the Index page, and the input box on the modal page. That doesn't work. Can you be more specific on how to get this working? I'm new to this and would appreciate specifics :).

I'm investigating using Google address auto-complete with Core and jQuery. This works fine when I place the code in Tenants\Index.cshtml, but it does not work if I place the same code in Tenants_CreateModal.cshtml (the address suggestions doesn't come up). Why is this?

Here is the sample code I'm testing out:

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script>
<script type="text/javascript">
google.maps.event.addDomListener(window, 'load', function () {
var places = new google.maps.places.Autocomplete(document.getElementById('txtPlaces'));
google.maps.event.addListener(places, 'place_changed', function () {
var place = places.getPlace();
var address = place.formatted_address;
var latitude = place.geometry.location.lat();
var longitude = place.geometry.location.lng();

var mesg = "Address: " + address;
mesg += "\nLatitude: " + latitude;
mesg += "\nLongitude: " + longitude;
alert(mesg);
});
});
</script>
<span>Location:</span>
<input type="text" id="txtPlaces" style="width: 250px" placeholder="Enter a location" />

Hi, I'm using Core and jQuery. When adding a new entity using the RAD tool, the new entity icon are the three dots. How can this be changed?

Also, if adding several entities, they newest one is added to the top. How can the order of entities be changed?

I am new to this and would appreciate detailed explanations.

Answer

I did add a language from the list. For me, this worked after cleaning up browser history.

Hi, I did the commands myself and the table is now created and everything works:

PM> add-migration cmdlet Add-Migration at command pipeline position 1 Supply values for the following parameters: Name: 1 To undo this action, use Remove-Migration. PM> update-database Applying migration '20180829074808_1'. Done. PM>

I wasn't sure what to supply for Name, so I just tried "1". Can you explain how this worked? And why doesn't the RAD Tool work for these commands?

Hi, using Core and jQuery, I get the following error with the RAD Tool:

Running add-migration... No executable found matching command "dotnet-ef" Running update-database... No executable found matching command "dotnet-ef"

All other files are created fine, but GUI will not load as the table hasn't been created. I have the latest version of aspnetzero. What is causing this?

Answer

I can also add that I downloaded the latest version of aspnetzero last night, and I installed it on another PC. I am not working on the same instance as when I posted this back in April. If you don't understand my problem, it is simple to recreate by just adding a new language, then select it, and see what happens :).

Answer

I'm using ASP.NET Core & jQuery. The new language I added is available in the drop-down. I see that it is also saved in the AbpLanguages table. I added a target value for the first few texts, and also see that these are saved in the AbpLanguageTexts table.

When I select the new language from the drop-down, it doesn't get selected.

Is there a step I am missing? Do I need to add all the target vales first? Do I need to edit some xml files?

Answer

I also would like to know if a new language will be migrated to Production when using migrator.exe :).

Showing 11 to 20 of 28 entries