Calling Razor pages from Blazor wasm - razor

I have a Blazor wasm hosted app and it has three projects. Client, Server and Shared. When I scaffold identity pages, I can see Login.cshtml page in the server project. I have two questions:
How does Blazor serve the Login.cshtml pages from the server project? I mean how is the routing defined and where?
If I want to create my own cshtml page, can I do that? How will I call it from my wasm app?

Related

Server.Transfer in Asp Net Core 3.1

I have two applications hosted and running in IIS in my windows server.
App A: Dot net core 3.1 application running on 80/443 port handling requests from external clients.
Site B: Hosted on a different port, say 32342, which has sensitive data and serving html pages.
App A is exposed to external network. Site B is behind firewall and not exposed to outside network (Port is blocked by firewall).
Whenever a new request comes to App A, after authentication, it should serve corresponding page from the Site B.
After searching several options, I came up with the option of Server.Transfer(). Unfortunately, it is not supported in Dot net core 3.1
I read about URL Rewrite. But it rewrites all the requests. I just need to serve contents from different server after authentication only for couple of controllers. How do I achieve this inside a Controller.?
(Other better options to serve webpages after authentication is also welcome).

How to make .exe files of yii2 application

I have designed a CRUD application in yii2 using model, view and controller. Now I want that this application should be used by users online. How should we do that?
Whether we should make .exe files or host this application?

Turn static website into a dynamic website

I just wanted to know how can i turn my static website into a dynamic website. I have created a static HTML website and want to turn it into a dynamic website. Can anyone tell me what steps should i take? Thank you!
A dynamic website means to use server sided scripts for the creation of the websites which are controlled and processed by the server before being sent to the client. It will be simple so learn php or other server sided languages such as asp.net and get a server or hosting service or just install XAML or WAMP on your local machine so that an apache server environment is created. And then re-construct your pages with .php as its extension and then reconsruct the pages using php script. Learn Php its simple. Any more clarifications just comment

How to execute aspx file within html using iframe

i am having a contact.html page which is hosted in IIS .Now i need to refer aspx page using iframe which performs some process.is there any possibility to call aspx page if so how can i link in IIS ?
How to build aspx page to link with html page?
if i link using iframe the error displays as below:
Server Error in '/' Application.
Runtime Error
An application error occurred on the server. The current custom error
settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could,
however, be viewed by browsers running on the local server machine.

Dynamic Web App to Phonegap

I'm trying to turn a simple webapp into an Android app by using Phonegap Build. My webapp has some simple jQuery AJAX methods (GET/POST). I'm not sure how to go about this -- when I upload the zip to Phonegap Build, the zip includes the html file, the css file, and a js script which is basically the Node.js server.
My HTML file includes some javascript that relies on GET/POST from the server, but it never runs in the android app that is built. I have tried whitelisting the localhost in the config.xml file (10.0.2.2) but this is also not working. Anyone have an idea? Should I not be using Phonegap Build? Thanks.
PhoneGap will not allow you to run any node.js script. Node.js - is server side solution.
What you are looking for is to make front-end in html+css+js, that will speak to your node.js using AJAX. But node.js have to run on hosting that will be available online. So that way your application will speak to node.js process that will server all clients (PhoneGap applications) via HTTP (AJAX).
Please remember, that StackOverflow helps with specific code problem, not knowledge or generic questions.