c# - Sending sms from Windows Phone 7 application -
In my Windows Phone 7 application, I want to send an SMS where the message should contain data from my previous page in my application. The data I want to display is:
if (this.NavigationContext.QueryString.ContainsKey ("Date_Start")) {// If it is available, then parameter value date = NavigationContext Get the .QueryString ["DATE_START"]; Datee.Text = date; } If (this.NavigationContext.QueryString.ContainsKey ("News_Title")) {// If it is available, get the parameter value ntitle = NavigationContext.QueryString ["News_Title"]; Title. Text = nitlal; } (This.NavigationContext.QueryString.ContainsKey ("News_Description")) {ndes = NavigationContext.QueryString ["News_Description"]; Description. Text = ndes; } I have written the following code in the button click:
Private zero btn_text_Click (Object Sender, RoutedEventArgs e) {SmsComposeTask smsComposeTask = new SmsComposeTask () )); SmsComposeTask.To = "+ 91-9778999"; SmsComposeTask.Body = Title + "," + Description + "," + Date; SmsComposeTask.Show (); My_popup_cs.IsOpen = false; } I wanted to get the result as the value of the title, description and date, but I found the result in the message body:
Windows Control Testblocks, systems Indo. Control. Text block, system Indo. Control. TextBlock Although I only tested in the emulator, is it possible to display results in emulator? Or please take a look at my code
I see your code. It should be like it.
smscompose Task. Body = title. Text + "," + description. Text + "," + date Text; Please try it.
Comments
Post a Comment