Advertisement

09.05.2008 at 02:52PM PDT, ID: 23707825
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

How to get value from Javascript to Webform

Asked by stullhe104 in JScript, .NET, Programming for ASP.NET

Tags: ,

his 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.Start Free Trial
[+][-]09.05.2008 at 05:35PM PDT, ID: 22404900

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JScript, .NET, Programming for ASP.NET
Tags: ASP.NET and Javascript, IE7
Sign Up Now!
Solution Provided By: HeoQue
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09.05.2008 at 11:39PM PDT, ID: 22406319

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628