Reputation: 11
I have a webpage displayed inside a web view.. on the webpage the user is supposed to be selecting a date using a calendar control/datepicker and this value will go towards the server side.
How can the data passed through a function to a server side and from server side how can i get back to application using xamarin forms
Regards Jazzy Z
Upvotes: 0
Views: 1856
Reputation: 5234
If it has to be a web view instead of the calendar picker in Forms then take a look at XLabs HybridWebView as it provides two-way communication between JS & C#.
Another option would be to use a date picker in Forms. If the built-in picker isn't enough you can take a look at XLabs Calendar Control.
The XLabs project is community project and you can either get it from NuGet (XLabs.Forms is where the Forms related items are) or copy what you need from the GitHub source.
Upvotes: 1