Demos

Top  Previous  Next

 

Along with the ThinRDP installation we have shipped two SDK demos: an html demo and an asp.net demo.

 

HTML demo:

 

This demo is an HTML page that has an example of SDK usage in "Local mode". ThinRDP is embedded in a div placed inside the same web page.

This HTML example is located in the 'sdk.html' file inside the ThinRDP web directory under the ThinRDP installation directory (e.g.: C:/Program Files/ThinRDP Server/webrdp) .

 

You can try this demo directly from ThinRDP Server, by opening on your web browser the ThinRDP Server Address followed by /sdk.html (e.g.: http://127.0.0.1:8443/sdk.html).

To use this demo on your environment, follow the Quick Setup Guide instructions, on the Deployment page.

 

 

C# asp.net demo:

 

The asp.net demo is an example on how to use the SDK in a "Remote mode". This example allows you to open the remote screen on a "New window", or "Embed" it in a iFrame located on the same webpage. Besides the SDK integration, the application shows how to perform an External Authentication by dynamically negotiating a encryption key with ThinRDP Server.

 

ThinRDP Server HTML5, Web-based RDP desktop remote control sdk demo

 

 

The website demo is accessible from the Users documents folder, under the directory \ThinRDP Demos\SDK. Download it here.

In order to compile this application, you can use the Microsoft Visual C# Studio 2010 Express.  Open the application from the menu File-Open Web Site.

 

The web.config parameters:

 

username/apikey:

 

The external authentication is set to use username/password as credentials by default, but you can also change the web.config file to start using the username/apikey pair of values as credentials.

Once you set the corresponding "APIKEY", the application will start performing the external authentication using the username/apikey values.

 

   <add key="APIKEY" value="3884F316-3429-49A0-9282-AF0C52B62107"/>

 

HTTP Protocol:

 

The example application is completely functional for environments where the ThinRDP Server is deployed on the same machine and running under the HTTP protocol.

If your environment does not attend these conditions you can also personalize those values on the web.config file:

 

   <add key="PROTOCOL" value="http:"/>

   <add key="SERVER" value="127.0.0.1:8443"/>

 

HTTPS Protocol:

 

A valid certificate will be required when using the HTTPS protocol.

You can use the Cybele Software embedded certificate, by setting the application to work with Dynamic DNS and Certificate Sharing and changing the "SERVER" key on the web.config file following the format below:

 

   <add key="PROTOCOL" value="https:"/>

   <add key="SERVER" value="127-0-0-1.thinrdp.net:8443"/>

 

 

note

 

If you want to use your personal Certificate, read the Managing the SSL Certificate section.

note

 

If you have problems regarding Google Chrome Frame installation on Interner Explorer 8 (and older versions) when using ThinRDP on iFrames, add these script tags on the page where the iFrame is located:

 

  <script type="text/javascript">

      var CFInstall;

      var CheckChromeFrame = false;

  </script>

 

    <script src="jquery.min.js" type="text/javascript"></script>

    <script src="sdk.min.js" type="text/javascript"></script>

 

This will allow Google Chrome Frame to be installed properly.