Silverlight application can get a reference to the Xrm.Page Object instance using either of following approaches. 1. Using HTML bridge feature of Silverlight ScriptObject xrm = (ScriptObject)HtmlPage.Window.GetProperty(“Xrm”); ScriptObject page= (ScriptObject)xrm.GetProperty(“Page”); 2. Using Dynamic Language Runtime Using DLR you can utilize the dynamic language keywords which allow resolving method calls at runtime. dynamic xrm = (ScriptObject)HtmlPage.Window.GetProperty(“Xrm”); [...]
Posts Tagged ‘JScript’
Interacting Silverlight with CRM Forms
Posted: December 27, 2011 in CRM 2011, CRM5, JScript, Microsoft Dynamics CRMTags: CRM2011, JScript, OData, Silverlight, Silverlight with CRM 2011, WCF, Xrm.Page
0
How to Call Web Service from Java Script
Posted: July 18, 2008 in Microsoft .NET, Microsoft Dynamics CRMTags: Ajax, JScript, WebService
Here we will be calling the default helloworld webservice that is already created for us when we open a asp.net webservice project template in Visual Studio. We’ll just have a textbox(html control) which will display us the Hello World! response returned from the web service. This is the step we need to follow 1) Create [...]

