Base solution for your next web application

Activities of "cbogner85"

Hello,

just to give some feedback (maybe somebody else comes up with this question in the future): after working with DevExpress and ASP.NET Zero I quickly understood why you suggested jQuery version.

It's true that it fits better to ASP.NET Zero and after working with it for a while, I even started to prefer it over the Tag Helpers. :)

Therefore, I'd also suggest everybody to use jQuery version.

Hi @ismcagdas,

it works like a charm - thank you so much!

First, I thought it wouldn't work as gulp took more than 2 minutes to finish task "buildDev" - and while (initially) running this task, it doesn't reflect changes. But after finishing the task, watching files runs perfect and instant. This saves me so much time.

Thank you again!

Cheers Claus

Hello,

When I add a new View, corresponding script is placed in wwwroot/view-resources/Area/App/Views/ViewName/Index.js This file is included in bundleconfig, therefore, I have to run npm run create-bundles in background, otherwise changes in js file won't be updated.

However, whenever I save the js file, it takes about 20 seconds to rebundle the whole project. Since I'm working in js code most of the time, I have to wait a lot for my changes to be applied. Sometimes I only change a simple typing error, then rebuilding takes 20 seconds, then there is another typing error so I have to wait again and so on... this really slows down my development process.

Is there any possibility to disable or accelerate bundling/ minifying process while debugging (of course with having my js files up-to-date though)?

ASP.NET Core & jQuery, v7.0

Thanks Claus

Hi,

great tip - that was easy to accomplish :)

Thank you very much!

Thank you very much for your clear response.

I'll try to implement it this way :)

Just to clarify, my main menu also depends on project's permissions and items will change when a user switches between projects. That means, for some items I can't use AppPermissions approach to perform show/hide actions. Yet I have no idea how I will accomplish this, since .AddItem(...) in AppNavigationProvider only allows permissionDependency or featureDependency... initially I thought I could write something like this:

menu .AddItem(new MenuItemDefinition( AppPageNames.Common.Project, L("UploadFiles"), permissionDependency: new ExtendedPermissionDependency(AppPermissions.Pages_Project_Upload, CurrentProjectId) )

by creating my own "ExtendedPermissionDependency" class.

Best regards Claus

Hi,

thanks for your quick reply.

I'm currently upgrading an existing project from Classic ASP.NET (Webforms) to ASP.NET Zero and basically your suggestion is how I did it in the previous version. Where should this permission check take place in ASP.NET Zero to follow best practise? I'm quite new to ASP.NET Core and thought I could maybe extend/overload or "copy" abp permission to follow best practises.

I also need to show/hide menu items based on custom permission checks.

Thanks in advance Claus

Hello,

I really like the way how authorization is implenented in ASP.NET Zero.

However, I need a more sophisticated way of granting permissions: I'm developing something similar to a a project management system, where tenants/ users can manage project files. The system is also feature-based (upload, download, edit, ...), but some features need to be in combination with project id. For example, user 1 has full access to project 1 but no access to project 2, user 2 has access to some features regarding project 1 and so on. Of course, I also need global permissions like 'create new projects' (actually this is possible with the current implementation).

When I look at AbpPermissions table in SQL Server, it seems that it's almost what I need, I only need to add more dimensions, i.e. ProjectId.

Is there a possbility to extend integrated authorization module to fulfil my needs?

Edit: Forgot to mention that I'm using ASP.NET Core & jQuery (current version 6.9.1)

Hello guys,

recently I bought ASP.NET Zero as a starter for a new project (actually it is a redesign of an existing project). I'd like to use DevExtreme components since there are widgets I need in my application (dashboards, pivot grids), additionally "standard" widgets like textbox, dropdown, ... provide rich experience.

I found the following article from one of your developers describing how to integrate DevExtreme with ASP.NET Zero: https://medium.com/volosoft/devextreme-asp-net-zero-integration-444ea26d0fc5

In die article, the author states: "We suggest you to use JQuery version of DevExtereme for ASP.NET Zero MVC & jQuery version rather than DevExtreme ASP.NET Core components (HTML helpers) since it better fits to our design."

Could you explain why the jQuery version better fits into ASP.NET Zero? I don't really unterstand this as data binding seems easier to me in Core Version (by using model) than in jQuery version (creating custom data store, writing much more lines of code). What are disadvantages of using the ASP.NET Core Version?

Thanks in advance Claus

Showing 1 to 8 of 8 entries