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
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