Open Closed

How can I add some code into Main page.(E.G. app.razor) #1035


User avatar
0
drenton created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v4.2.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): No
  • Exception message and stack trace:
  • Steps to reproduce the issue:

Hi,

I'd like to use a open source [https://github.com/Blazored/Modal] in my project. To use it, I need to use below code.

<CascadingBlazoredModal>
    <Router AppAssembly="typeof(Program).Assembly">
        ...
    </Router>
</CascadingBlazoredModal>

Some open soures need to be added into "Main" page, how can I handle this?

Thanks.


1 Answer(s)
  • User Avatar
    0
    drenton created

    I could manage this by following below link.

    https://support.abp.io/QA/Questions/550/Why-are-there-no-Startupcs-and-Apprazor-files-in-an-abpio-Blazor-project

    But the references in the LeptonTheme module does not seem working correctly at first. I had to remove "project" references in identityserver project then I added packages from ABP Cumercial Nnuget Server.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 08, 2025, 08:19