Layout Advice



Hi,

Our company currently has a client/server based app. Now the need
has arisen to tap some of the functionality from a webpage. This
means the client will disappear and a subset of functionality will
be needed from the web.

Normally a user logs in from the client, then functionality will send
commands to the server to accomplish certain things.

I also have a traditional unmanaged COM object that wraps this
functionality for 3rd party developers to use.

//pseudo code
ServerConn conn = new ServerConn ();
int UserID = conn.Authenticate(UserName, Password);
if(UserID != -1)
{
//do some stuff
}
conn.Close();

Since there needs to be a user logged in, I'd like to tie the object
to a session. Here's the kicker. The "stuff" that needs to be done
needs to be done from JavaScript without postbacks. For example
clicking an arrow to move a camera. The movement of that camera
has to be tied to a "logged in" user. I had considered doing a
web service, but wasn't sure how that would maintain a logged in
user, then consume the web service within the JavaScript

So I need to be able to:

Connection [Server-Side Script]
Log In [Server-Side Script]
Perform functions with hardware [Client-Side JavaScript]
Close Connection [Server-Side Script]

I had also considered wrapping the client-side needs in a page,
and have the arrows, for example, call the page with XMLHttpRequest.
I also wasn't sure if that would use the same logged in session.

Thanks for the advice ahead of time.

Steven .



Relevant Pages

  • Re: Form PostBack
    ... I suggest you find a way to achieve this functionality without posting back. ... One way is to use all client side code (probably JavaScript.) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Layout Advice
    ... of a postback without going away from the client side JavaScript model. ... has arisen to tap some of the functionality from a webpage. ... Connection [Server-Side Script] ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: C# ASP.NET 2 Passing XML data to client browser JavaScript functio
    ... that it can be processed through client side JavaScript. ... functionality be achieved? ... Have you looked at Ajax Pro for .Net, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: If you had JavaScript running server-side...?
    ... Rhino JavaScript engine. ... mentally and so that the server and client can share code. ... functionality that you would be able to share with the server if you ...
    (comp.lang.javascript)
  • Re: Architectural feedback
    ... Most functionality will be accessed from our ... > with WinForms-based apps (assume all client machines are Windows running ... > unified under a single app. ... > core app must reside on the client or may be run from the server. ...
    (microsoft.public.dotnet.general)