Invoke string silverlight
I have a problem with invoking string, I am creating silverlight application:
This is my DomainService:
// TODO: Create methods containing your application logic. [EnableClientAccess()] public class DomainService1 : DomainService { LicensedClass validation = new LicensedClass(); [Invoke] public string licenseValidation() { return validation.Validation(); } [Invoke] public string licenseInformation() { return validation.LicFile(); } }
}
And this is my Client Side class:
public partial class MainPage : UserControl { DomainService1 domain = new DomainService1(); public MainPage() { InitializeComponent(); } public void CheckText() { InvokeOperation<string> operation3 = domain.licenseInformation(); operation3.Completed += (x, y) => { if (!operation3.HasError) { textBox2.Text = operation3.Value; } else { textBox1.Text = "error"; } }; }
but when I run my app nothing happens, text boxes are just blank. Any suggestions?
Answers & Comments...
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog