Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Nov 2006
    Location
    Rio de Janeiro
    Posts
    13

    ASP.NET Web Client Tutorial

    Hi...
    My .NET Adapter based in the code exemples is ok and working. Now i'm trying to do an ASP.NET Web Client but without success...
    don't you have any tutorial or exemple about this?

    thanks.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    Hi,

    The source code for the online ASP.NET AJAX Demo is available from here:
    http://www.lightstreamer.com/share/A..._AJAX_Demo.zip.

    Cheers

  3. #3
    Member
    Join Date
    Nov 2006
    Location
    Rio de Janeiro
    Posts
    13
    Hi Alex...
    thank you for the exemple...

    please, tell me if i'm wrong...
    this ASP.NET page is just like any other html page... i mean, the control of push page, subscription, etc is inside the javascript code.

    Some questions about this code...
    var lsPage = new PushPage();
    lsPage.context.setDomain("lightstreamer.com");
    what's this setDomain?
    lsPage.context.setDebugAlertsOnClientError(false);

    lsPage.bind();
    lsPage.loadEngineMinimal("ls/lsengine.html");
    lsPage.onEngineReady = function(engRef) {
    engRef.connection.setLSHost("push.lightstreamer.co m");
    engRef.connection.setLSPort(80);

    must i use "localhost" and port "8080" if lightstreamer and iis are in the same server?
    engRef.context.setDebugAlertsOnClientError(false);
    engRef.connection.setAdapterName("STOCKLISTDEMO");
    engRef.changeStatus("STREAMING");

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    Hi,

    you can find details about all the settings for the Lightstreamer Web Client in the API documentation, under "DOCS-SDKs\sdk_client_web\doc\jsdoc".
    The documentation is also available online; you can find details about these specific settings at
    http://www.lightstreamer.com/docs/cl...html#setDomain, http://www.lightstreamer.com/docs/client_web_jsdoc/Connection.html#setLSHost and http://www.lightstreamer.com/docs/cl...html#setLSPort.

    You can use different ports on the same host for Lighstreamer Server and your Web Server, provided that you always use the full hostname to name the host and set the domain accordingly. In DOCS-SDKs\sdk_client_web\examples\StockListDemo\README. TXT you can find, in the "External deployment" section, the guidelines for a general case, which also apply to your case.

    Dario.

  5. #5
    Senior Member
    Join Date
    Jan 2011
    Location
    Navi Mumbai
    Posts
    30

    Question

    The source code zip file provided in this thread doesn't working, can you re-upload the ASP.NET AJAX Demo code so that i can also view the code for better understanding
    The source code for the online ASP.NET AJAX Demo is available from here:
    http://www.lightstreamer.com/share/A..._AJAX_Demo.zip.

  6. #6
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    sorry for that!
    I've re-uploaded the missing file.

    note that the zip includes an old js library under the ls folder; substitute it with a newer one from the distribution package.

  7. #7
    Senior Member
    Join Date
    Jan 2011
    Location
    Navi Mumbai
    Posts
    30
    thanks for re-uploading the file.

  8. #8
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    The current link for downloading the source code is:
    www.lightstreamer.com/temp/ASP.NET_AJAX_Demo.zip

  9. #9
    Senior Member
    Join Date
    Jan 2011
    Location
    Navi Mumbai
    Posts
    30
    Thanks for your reply
    MONE has already re-uploaded the file in the same location.

  10. #10
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    Yes, but now it has moved to the new location, which is www.lightstreamer.com/temp/ASP.NET_AJAX_Demo.zip

 

 

Similar Threads

  1. NonVisualTable - simple tutorial
    By Mone in forum Client APIs
    Replies: 13
    Last Post: September 9th, 2010, 05:51 PM
  2. New Tutorial Available
    By Alessandro in forum Adapter Protocol
    Replies: 2
    Last Post: October 30th, 2008, 02:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 11:04 PM.