Information exchange between Javascript and Webforms



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

--
stullhe104
.



Relevant Pages

  • Re: Converting A2K to Access 03
    ... Rick, I'm in the same boat as far as the user not being able to change ... user trys to run the app via the vbscript: ... user log out of the workstation, make the user an Admin on his or her own ... have the user log back in. ...
    (comp.databases.ms-access)
  • Re: Converting A2K to Access 03
    ... In our environment users don't have the abilty to change macro settings or ... user trys to run the app via the vbscript: ... user log out of the workstation, make the user an Admin on his or her own ... have the user log back in. ...
    (comp.databases.ms-access)
  • Re: Information exchange between Javascript and Webforms
    ... Most of those is to prevent that somebody from a server gets any information from a user workstation except the server variables. ... the app will print to 3 different ... types of printers and I don't want the user to have to pick which one. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Releasing my VB.NET app over the intranet
    ... There are two differences between the simple app and the one I am ... My app uses a DLL that I designed as part of the app. ... workstation, it works fine. ... Settings/sschum/My Documents/Visual Studio ...
    (microsoft.public.dotnet.framework)
  • Program execution question - need guidance
    ... I have written a Windows Forms application in C# that is designed to ... access the program from her workstation. ... No exceptions seem to be thrown. ... The app is basically a database app which displays employee ...
    (microsoft.public.dotnet.languages.csharp)