dynamics crm 2011 - how to read Data context parameter from a crm to silverlight webresource -
i have silverlight webresource in crm 2011. task append data parameter in url like
https://www.............../data=1234
now in silverlight application need read data parameter. have tried read data
if (app.current.host.initparams["data"] != string.empty) { string callernumber = app.current.host.initparams["data"]; ...
and
i tried filtering code
string url = system.windows.browser.htmlpage.document.documenturi.tostring(); var uri = new uri(url); var callernumber = uri.query;
callernumber have ?data=1234
but still not able data parameter. help
i believe find in query string. can access this
foreach (var item in htmlpage.document.querystring) { //do data }
Comments
Post a Comment