Base solution for your next web application

Activities of "ismcagdas"

Hi,

Inject IPermissionManager into TenantManager and use it like this.

await _roleManager.GrantPermissionAsync(userRole, _permissionManager.GetPermission(AppPermissions.Pages_Tenant_Dashboard));
Answer

Hi,

Latest AspNet Zero template contains a basic implementation of ADFS. You need to fill below settings in your web.config.

<add key="ExternalAuth.WsFederation.IsEnabled" value="false" />
<add key="ExternalAuth.WsFederation.MetaDataAddress" value="" />
<add key="ExternalAuth.WsFederation.Wtrealm" value="" />

Then it should work.

Hi,

Is your application is single tenant ? Did you disabled MultiTenancy in your Core module ?

If so, there is a known bug and we will fix it in the next version. See <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/391">https://github.com/aspnetzero/aspnet-zero/issues/391</a>.

Hi,

Can you share your .cshtml file content ? Maybe, we can understand the problem.

For validation in MPA side, we used <a class="postlink" href="https://jqueryvalidation.org/">https://jqueryvalidation.org/</a> library. You can check it's details.

For a validation example, you can also check user creation modal's cshtml and js files. See <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/Areas/Mpa/Views/Users/_CreateOrEditModal.js">https://github.com/aspnetzero/aspnet-ze ... itModal.js</a> and <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/MyCompanyName.AbpZeroTemplate.Web/Areas/Mpa/Views/Users/_CreateOrEditModal.cshtml">https://github.com/aspnetzero/aspnet-ze ... dal.cshtml</a>

Basically, you need to put attributes to your html elements, and call jquery validate function on modal's init. Before saving your modal data, call valid function on your modal's form and dont save if it is not valid.

Hi,

Sorry but we cannot provide exact steps for doing this. We have provided chaging from one theme to another roughly in keenthemes forum.

If you can share your specific problems, we can try to help.

Thanks.

Hi,

Since we dont use .Net Core, you will not be able to run projects on a MAC. But we have plans for moving to .NET Core.

Hi,

You need to include a javascript like that in your Layout file. I haven't tested this code, please check if there is any typing error when you are trying this.

$(document).ready(function(){
    $("ul.page-sidebar-menu li.nav-item a").click(function(e){
        var $menuItemLink = $(this);
        //here, you need to decide whether open a popup or redirect to href of html a element.
        if(WeNeedToOpenPopup){
            e.preventDefault();
            //open popup here
        }else {
            document.location.href = $menuItemLink.attr("href");
        }
    });
});

Hi,

You are invited.

Hi,

Which version of AspNet Zero do you use ? MPA or SPA ?

You can find material admin1 files in metronic template, you can download it here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/releases/download/v1.13.0/metronic_v4.7.zip">https://github.com/aspnetzero/aspnet-ze ... c_v4.7.zip</a>.

Great :)

Showing 11921 to 11930 of 12740 entries