|
Rank: Newbie Groups: Member
Joined: 1/2/2020 Posts: 3
|
I have an unusual use case where I need to embed a browser within a blazor or asp.net app. For this use case, I cannot use an iframe or navigation manager, but instead need the ability to run a full browser from within a single page app. I realise EO.Webbrowser was built for WPF or Winforms, but wondered if this was possible by including some additional dlls in the blazor project?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
You will not be able to run any browser with UI from an ASP.NET app. Web browser are client side component, they run the client's computer. ASP.NET is a server application platform and it runs on your web server. These two by definition do not mix.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 1/2/2020 Posts: 3
|
Thanks - what about in Blazor?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Blazor has Blazor Server and Blazor WebAssembly. Blazor Server won't run client side code just like ASP.NET. Blazor WebAssembly does run on the client side but it runs on top of WebAssembly. This is not the same thing as traditional client side application. You will have numerous strict restrictions. For example, code inside a web page can't access local files, yet a native browser engine must to be able to access local files. So it won't work.
I am not sure what's the reason behind your unique need for this -- but there is no practical reason or mean to run a browser engine (started by you) inside a web page because the web page itself is already running inside a browser engine started by the user. So whatever you want to do with the "inner" browser engine started by you, you should find a way to do it with the "outer" browser engine started by the user instead because in a secure web environment, the ultimate control must lie on the user. This rule can not be broken as otherwise it would be a security hole for the web browser the end user is using.
|
|
Rank: Newbie Groups: Member
Joined: 1/2/2020 Posts: 3
|
OK thanks - appreciate the detailed reply
|
|