Javascript Problem
Hey all,
I am working on an application and I need to have an enabled textbox that you can't edit. The reason is is that when you disable a Webcontrol or set its visiblity to False its value does not get inserted into the HTTP Request the same holds true for the HTMLInputControl.
The problem here is that, after the page is posted, it will not go through the asp life cycle (im pulling the request straight out of the HTTP Pipeline, processing my data, then redirecting) and I cannot use "Request" in anyway (Calling Request cause's the entire HTTP Request to be loaded into Server Memory, exactly what i am trying to avoid) because it would circumvent what I am trying to do.
Here is what im trying to solve, this app is going to be on an intranet, when a network user goes to the page i need to grab their username calling Request.ServerVariables("Remote_User") and placing that value in a text box (Calling request on initial page load is ok, it is after the page is posted that this cannot be done)
Obviously, I do not want this value altered in anyway. The short coming of this is if the user disables Javascript in their browser, but only users with Admin rights have the right to make those changes to their system.
When it comes to JavaScript my skills are a little shakey but what I was thinking was something like this:
When txtID onfocus == true alert('Message'); [move focus to the next form control]
Is there an eaiser way to do this or would the above logic suffice?
"The one language all programmers understand is profanity."
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click  on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
|