Information exchange between Javascript and Webforms

H

Herb

This may be a crazy question but here goes!

I have an ASP.NET application that will run on my Intranet. I need to know
what workstation the app is being run at in order to determine where printed
output should be directed. In other words, the app will print to 3 different
types of printers and I don't want the user to have to pick which one. If I
need to print a label, I want to be able to direct it to the label printer at
the requested workstation.

Anyway, I cannot find a way to do this in ASP. There is no API call to get
the workstation name, as you can do in a Windows app, and there is no way to
read from the client machine's hard drive to read a file that I might put
there to tell me what the workstation is.

Except for a cookie! (I think).

I've got a process that reads/writes the cookie in Javascript but I can't
seem to find a way to get it back to my Webform. Ideally I'll store this in a
Session variable but if I could even get it back to an ASP textbox I'd be
happy because I could set the session variable from there.

If anyone knows of a better way to accomplish this end, I'd be happy to hear
about it. Otherwise, if you know of a way to get a value from Javacript code
bak to the webform I'd be glad to hear that also.

Thanks in advance for you ideas and suggestions.

Herb
 
C

Cor Ligthert[MVP]

Herb,

Ever noticed that there where a lot of security updates.

Most of those is to prevent that somebody from a server gets any information
from a user workstation except the server variables.

However you can try it with an Active X. The user should than install the
Active X themselves. As it is not in your company then forget it. Nobody
installs an Active X as long as it is not from a trusted company.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top