1
I have a project in Asp net mvc and another in Xamarin Forms, I need to call in my project Xamarin Forms a Webview Local but the page is as cshtml (Asp net)
1
I have a project in Asp net mvc and another in Xamarin Forms, I need to call in my project Xamarin Forms a Webview Local but the page is as cshtml (Asp net)
0
It’s not gonna happen. cshtml
is a project file extension that needs to be compiled, published on an Asp.net server so that at the time of the web request is processed and only then the HTML page is delivered to the client (in your case the webview).
At best what you’ll achieve is browsing html content based on files within the application itself, but it’s hard to say whether it would suit you only with the information that has been provided so far.
I understand, I’m using html now, but I’m having trouble calling the local webview in each application using Dependency as suggested in the microsoft documentation
https://docs.microsoft.com/pt-br/xamarin/xamarin-forms/user-interface/webview?tabs=vswin
Gravity Code Description Project File Line Deletion State Error CS7036 There is no argument provided that corresponds to the required formal parameter "loadHintArgument" of "Dependencyattribute.Dependencyattribute(string, Loadhint)" Appfreight.UWP Error CS7036 There is no argument provided that corresponds to the required formal parameter "loadHintArgument" of "Dependencyattribute.Dependencyattribute(string, Loadhint)" Appfrete.iOS
CS1061 error "Mapviewdetail.Ibaseurl" does not contain a definition for "Baseurl" and it was not possible to find any "Baseurl" extension method that accepts a first argument of type "Mapviewdetail.Ibaseurl" (is there an missing Assembly use or reference directive?) Appfrete Print code https://www.dropbox.com/s/xdunfahoco6xy46/erro.PNG?dl=0
@Viniciusdantas, beauty. Open up another question about the new mistake you’re facing, since this is outside the scope of this thread here. We’ll see if we can help you from there. It’s hard to do it without seeing the code you’re using.
Browser other questions tagged asp.net-mvc xamarin-forms webview
You are not signed in. Login or sign up in order to post.
You cannot open the View directly, you will need to indicate the URL to of the action on the mvc site
– Leandro Angelo