Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

how to print the input inside a string?

$
0
0

I am trying to print the input entered by the user inside an alert. Can you tell me what I am doing wrong.

void AddButton_Clicked(System.Object sender, System.EventArgs e)
{
if(!string.IsNullOrEmpty( SensorLookup.Text))
{
MessagingCenter.Send<AllocateSensorViewCell, int>(this, MessagingConstants.AllocateSensor, Convert.ToInt32(SensorLookup.Text));
}
else
{
Application.Current.MainPage.DisplayAlert("hello", "Please check the " + SensorLookup.Text + ".", "ok");
}
}



Viewing all articles
Browse latest Browse all 204402

Trending Articles



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