Henryk
Posts: 63
|
Posted: 06/03/2004, 7:28 AM |
|
How would I pull an NT username into a hidden field to populate my table?
Henryk
|
|
|
peterr
Posts: 5971
|
Posted: 06/03/2004, 10:16 AM |
|
This may depend on the programming language or server used.
Here are IIS server variables, one of them being LOGON_USER which could be what you need: http://msdn.microsoft.com/library/default.asp?url=/libr...ervariables.asp
There is also info how to use them with ASP and ASP.NET
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Henryk
Posts: 63
|
Posted: 06/03/2004, 10:46 AM |
|
I'm sorry, I should have clarified that :)
I add a hidden field named logon for control source type and control source I am not sure what to use because it restricts me to the table the rest of the form is tied to and I can not figure out how to change that. I was going to use remote_user (which is what I use for other non ccs apps). The format I use is "Request.ServerVariables("REMOTE_USER")"
I just am not sure how to incorporate it into ccs :)
|
|
|
peterr
Posts: 5971
|
Posted: 06/03/2004, 2:52 PM |
|
Oh, if I understand this correctly now, I think that you could try these methods:
1. Place Request.ServerVariables("REMOTE_USER")" in the "Default" property of that control. This carries a certain risk because users can save the page to their own computer, modify this value and then submit the page with false information.
2. Use the "Before Show" to assign this function to your control, for example:
FormName.FieldName.Value = Request.ServerVariables("REMOTE_USER").
This method carries the same risk as the previous one.
3. Most reliable method would be to use the Before Insert or Before Update event to do what I described in #2.
Also see http://docs.codecharge.com/studio/html/ProgrammingTechn...foreInsert.html
I hope that this is what you were asking about.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
CameronF
Posts: 23
|
Posted: 07/02/2004, 2:42 PM |
|
If using .Net you can get this with the following code
Request.ServerVariables("LOGON_USER")
You must UNCHECK the "allow anonymous" within IIS for this to work.
|
|
|