Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Syntax Error in URL for Image [.aspx URL]/[URL with parameters]

$
0
0

Hi everyone, I try to use image for my application. i try with classic URL and i have no problem.

However my co worker give me this kind of link to use an image:

http://192.168.1.48/srwssocial/SocialGetVisuel.aspx?event=savstar2018&datamatrix=xavier

I can open it on google but when i compile i have a syntax error:

<Image Source="http://192.168.1.48/srwssocial/SocialGetVisuel.aspx?event=savstar2018&datamatrix=xavier"/>

Error '=' is an unexpected token. the expected token is ";". Line 13, position 94.

I use this nugget (FFImageLoading) to see if it's better but i have still the same problem.

XAML PAGE:

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" xmlns:ffimageloading="clr-namespace:FFImageLoading.Forms;assembly=FFImageLoading.Forms" prism:ViewModelLocator.AutowireViewModel="True" x:Class="SlimPass2.Views.EventCode"> <ContentPage.Content> <StackLayout> <ffimageloading:CachedImage HorizontalOptions="Center" VerticalOptions="Center" WidthRequest="300" HeightRequest="300" DownsampleToViewSize="true" Source = "http://192.168.1.48/srwssocial/SocialGetVisuel.aspx?event=savstar2018&datamatrix=xavier"> </ffimageloading:CachedImage> <Entry Placeholder="Password" Text="{Binding TempCodeEvent}" VerticalOptions="Center" HorizontalOptions="Center"/> <Button Text="Login" Command="{Binding EventConnectionCommand}" VerticalOptions="End" BorderRadius="10" HorizontalOptions="Center"/> </StackLayout> </ContentPage.Content>

Xamarin.Forms can use this can of URL or is there an other way to use it?

Thanks for your help!

Note: i already read this doc https://docs.microsoft.com/fr-fr/xamarin/xamarin-forms/user-interface/images?tabs=vswin


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>