Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am new in Universal app development. Can any one help me into following code,

I have load one website using web view control in universal app. I want to read some control value from same website. My label control id is 'lblDestination' on website.

I am accessing this in universal app like MAinPage.xaml
XML
<WebView x:Name="Browser" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Loaded="Browser_Loaded" NavigationFailed="Browser_NavigationFailed"> </WebView>

MAinPage.xaml.cs
C#
Browser.InvokeScript("eval", new string[] { "document.getElementById``('lblDestination')" }).ToString()**

Is this right way to read the browser control value? I am using the simulator for testing this app, So is simulator creating the problem?

What I have tried:

Not able to get and set value for web site control using universal app development.
Posted
Updated 29-Mar-16 19:53pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900