Hi @Hamed Vaziri ,
but i have a problem! Please see this link which works correctly & this link which does not works correctly (It means when you click on "Data" page, the content of Cmp1 page does not show on ComponentPage)
The problem is to make the not working sample to work, right?
From the "works" project, if you modify the content of the Cmp1.razor
view component in the RCLModule01 class library (Not the RCLModule01 in the Modules folder). And running the BlazorServerApp.Web application, you can see the cmp1
page content not change. Because, it will show the Cmp1.razor component in the Modules folder, instead of the Cmp1.razor component in the RCLModule01 class library. In another word, the RCLModule01 class library project seems not working, if you Unload the RCLModule01 class library project, the BlazorServerApp.Web application also works well.
So, to make the "Not works" project working, you can try the following steps:
- Right click the Modules folder, select the RCLModule01 folder and choose the Include In Project option to add it in the BlazorServerApp.Web application.
- Add
using BlazorServerApp.Web.Modules.RCLModule01;
in the MyComponent.cs file.
Then, running the BlazorServerApp.Web application, the result is like this:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion