I do have problems in my Silverlight application procedures.

Asked By 0 points N/A Posted on -
qa-featured

I already have an account on Google analytics.

I do also have its JavaScript code and pasted in default. aspx on my asp. net application.  

I also want to do this thing to my Silverlight application.

Will it work, if I’ll do the same procedure? Or do I need to do something else?

SHARE
Best Answer by Clair Charles
Answered By 0 points N/A #108403

I do have problems in my Silverlight application procedures.

qa-featured

Hi,

The procedure you describe that will work but first you need to modify that procedure. That procedure is right but you need to add more option on it. As like

1.       Web configuration (wed.config)

2.       Silverlight application name (SilverlightAppName.XAP)

3.       Silverlight application text page (SilverlightAppTestPage.HTML)

Add these options within your procedure. And also add its JavaScript code and compile them for test. All procedure must follow a street way to the end. Java program code will be containing condition like that. When your procedure code is ready then you can add java template into it. Then type your URL from a remote client.

Best Answer
Best Answer
Answered By 0 points N/A #108404

I do have problems in my Silverlight application procedures.

qa-featured

That may work, but then it may pose problems since the code is totally not meant for the Silverlight application. It will be better if you just got the javascript code that is meant to work in the Silverlight application and use it instead of trying out the one that is meant to be used in the Google analytics.

The following is a procedure to help you call the javascript code in silverlight:

  1. You will need to make a call to RegisterScriptableObject() in the constructor of your Silverlight application so that a managed object for scriptable access by JavaScript code is registered. .
  2. You will also need to add the function which you want to be called in your Silverlight code and it must be prefixed  with the [ScriptableMember] attribute.

-Clair Charles

 

Login/Register to Answer

Related Questions