Copy link to clipboard
Copied
I’m working on a DreamWeaver site using DreamWeaver 2021. The server uses a Razor Markup Engine to render .cshtml as .html. The .cshtml files are in https://preprod.globaltrafficgroup.com/Views/Home. If I update an existing file, say https://preprod.globaltrafficgroup.com/Views/Home/PortableRed.cshtml, then the corresponding page, https://preprod.globaltrafficgroup.com/portable-red reflects the update. Yes, I see the name and path differences and I don’t know how that happens. Also, the shared files are generating menus and link lists using a @foreach (var navItem in Model.NavigationItems) function. If I duplicate PortableRed.cshtml, re-name it to Parking.cshtml, then make changes in DreamWeaver, and upload it to the server, it does not become available as https://preprod.globaltrafficgroup.com/production. I did find an invisible file, https://preprod.globaltrafficgroup.com/Views/_notes/dwsync.xml which lists all of the files in the menu plus the new Parking.cshtml, so while dwsync suggests that it synchronizes DreamWeaver with something, that doesn’t seem to be making the needed connection. Somewhere the Razor Markup Engine or the IIS Version 6.2 (Windows server 2012 R2) server is converting the View/Home documents into linked resources off the main site and making them avilable to the Model.NavigationItems fucntion, but I can’t figure out where. Any assistance would be greatly appreciated.
Copy link to clipboard
Copied
I know nothing about Razor, sorry. And I don't work with ASP.net. Very few Dreamweaver users do.
Is this a Model-View-Controller (MVC) system?
https://developer.mozilla.org/en-US/docs/Glossary/MVC
Copy link to clipboard
Copied
Hi Nancy,
Thank you. As far as I can tell, yes. It appears to be very much like the MVC system described in LinkedIn Learning’s “Learning ASP.NET Core MVC” course, but that course does not reference DreamWeaver or server-side renaming and redirects.
cheers,
Gunnar
Copy link to clipboard
Copied
You might have better luck with debugging this in Visual Studio Code with the Blazer & C# extension.
https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.blazorwasm-companion
Copy link to clipboard
Copied
Nancy
Agreed, but sadly not an option.
cheers,
Gunnar
Copy link to clipboard
Copied
So according to another developer who understands .net, these files were set up so that pages could be modified but no pages can be added. Which is what I experienced. No solution but to tear it down and rebuild in something less rigid.