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

Update SQL Entry

$
0
0

Hi,

i have a question fow to enable user to update SQL Entry.

I have a Detail of users post with a button Update and this is my code behind. But nothing happens. How do i redirect back to edit of this selected post?

private void Update_Tapped(object sender, EventArgs e)
{

        var result = _adService.UpdateAdLogEntry(selectedAd);
        if (result == true)
        {
            DisplayAlert(LabelCZ.AlertSpace, LabelCZ.AlertDeleted, LabelCZ.AlertOk);
            Navigation.PushAsync(new HomePage());
        }
        else
        {
            DisplayAlert(LabelCZ.AlertSpace, LabelCZ.AlertSmtWentWorng, LabelCZ.AlertOk);
        }


    }

Viewing all articles
Browse latest Browse all 204402

Trending Articles



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