PDA

View Full Version : ASP.NET Web Client Tutorial


rmusco
01-04-2007, 03:50 PM
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.

Alessandro
01-05-2007, 10:52 AM
Hi,

The source code for the online ASP.NET AJAX Demo (http://www.lightstreamer.com/atlasDemo.htm) is available from here:
http://www.lightstreamer.com/share/ASP.NET_AJAX_Demo.zip.

Cheers

rmusco
01-05-2007, 09:03 PM
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.com");
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");

DarioCrivelli
01-08-2007, 10:26 AM
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/client_web_jsdoc/Context.html#setDomain, http://www.lightstreamer.com/docs/client_web_jsdoc/Connection.html#setLSHost (http://www.lightstreamer.com/docs/client_web_jsdoc/Connection.html#setLSHost) and http://www.lightstreamer.com/docs/client_web_jsdoc/Connection.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.

msgiribabu
01-28-2011, 06:53 AM
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 (http://www.lightstreamer.com/vb/../atlasDemo.htm) is available from here:
http://www.lightstreamer.com/share/A..._AJAX_Demo.zip (http://www.lightstreamer.com/vb/../share/ASP.NET_AJAX_Demo.zip).

Mone
01-31-2011, 10:33 AM
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.

msgiribabu
01-31-2011, 12:21 PM
thanks for re-uploading the file.

Alessandro
01-31-2011, 12:39 PM
The current link for downloading the source code is:
www.lightstreamer.com/temp/ASP.NET_AJAX_Demo.zip

msgiribabu
01-31-2011, 03:09 PM
Thanks for your reply
MONE has already re-uploaded the file in the same location.

Alessandro
02-01-2011, 02:40 PM
Yes, but now it has moved to the new location, which is www.lightstreamer.com/temp/ASP.NET_AJAX_Demo.zip