string uri = Application.Current.Host.Source.AbsoluteUri; int index = uri.IndexOf("/ClientBin"); uri = uri.Substring(0, index); WebClient wc = new WebClient(); wc.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded"; var query = "ad=" + txtAd.Text + "&soyad=" + txtSoyad.Text; wc.UploadStringAsync(new Uri(uri + "/Default.aspx"), query); wc.UploadStringCompleted += new UploadStringCompletedEventHandler(wc_UploadStringCompleted);
No comments:
Post a Comment