Base solution for your next web application

Activities of "strategy9"

Cool, thanks.

I'm working on the asp.netzero Xamarin project to create a generic app that will work for all of our users. However, we have multiple host URLs (user-specific). Has anyone implemented storing settings on the device with this app?

ie: when the app is installed and first run, it would ask for your specific config details (ie: host-url) and store those locally, and use that host-url instead of the value stored in DefaultHostUrl in ApiUrlConfig.cs

In a View I have a foreach loop. I have the string name of a set of AppPermissions in a table. I want to iterate through the data (to fill a select list) by evaluating permissions.

How can I use a variable in the IsGranted statement like:

if (IsGranted(AppPermissions.variablename))...

I've tried a bunch of different options using razor formatting but haven't figured it out yet. Is it possible?

Aaron, thanks for your comment. Can you elaborate on "You can check Context before calling SetCookie" ?

ie: what context am a I checking for? does AbpAntiForgeryManager.SetCookie(Context) allow me to suppress the XSRF-Token in the cookie?

I have a view where I'm making an api call via Ajax / JQuery to a third party. I can only get it to work by opening dev tools in Chrome and deleting the XSRF-Token. If I remove the token it works perfectly. If I don't remove it I get the "Request header field X-XSRF-TOKEN is not allowed by Access-Control-Allow-Headers in preflight response" error.

I don't control the server/code to where I'm making the api call (it is to do an IP Geo lookup).

I've tried adding [DisableAbpAntiForgeryTokenValidation] to my controller action but it seems to not help.

How can I disable this token from being created for this one view?

thanks!

Got it. Forgot to make it an embedded resource.

Thanks for the reply. For some reason our project came without es-MX (which is the Spanish version we need). I copied the xml text from your link and saved it as "myproject-es-MX.xml", saved it in the language directory (where the rest of the xml files are), and then created a "Spanish (Mexico)" language within the admin interface.

When I choose Spanish-Mexico now, it all stays in English... what have I missed?

Thanks!

My build of ASP.NET Zero is missing the Spanish language. From the original project download, I have the following languages:

en, fr, de, it, pt-BR, tr, ru, ar, zh-CN

The asp.net zero webpage advertises Spanish - do I need to download it separately?

Showing 1 to 8 of 8 entries