使用ASP捕获Windows登录 [英] Capturing Windows Login with ASP

查看:60
本文介绍了使用ASP捕获Windows登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我已成功捕获了用户登录详细信息,但我现在

有一个新问题我已将登录分配给会话变量,但是当我来的时候是

要使用存储在变量中的字符串,它会排除\,

从用户名中分隔域名,它应该是:DOMAIN \USERNAME,但是

我是得到DOMAINUSERNAME真的很痛苦。任何人

知道为什么会这样,以及我如何克服它?


谢谢

Hi I have succesfully captured the users login detail, but I now
have a new problem I have assigned the login to a Session Variable, however
when I come to use the string stored in the variable it excludes the \ which
seperates the domain from the user name, it should be :DOMAIN\USERNAME , but
I am getting DOMAINUSERNAME which really is a pain. Anybody
know why this is happening and how I can overcome it ?

Thanks

推荐答案

On Mon,13 Sep 2004 08:17:57 +0000(UTC),dave

< da ** @ griffineng.co.uk>写道:
On Mon, 13 Sep 2004 08:17:57 +0000 (UTC), "dave"
<da**@griffineng.co.uk> wrote:
您好我已成功捕获用户登录详细信息,但我现在有一个新问题我已将登录分配给会话变量,但是
当我来使用存储在变量中的字符串时,它排除了\,它将域名与用户名分开,它应该是:DOMAIN \ _USERNAME,但
我正在获取DOMAINUSERNAME痛苦任何人都知道为什么会这样,以及我如何克服它?

谢谢
Hi I have succesfully captured the users login detail, but I now
have a new problem I have assigned the login to a Session Variable, however
when I come to use the string stored in the variable it excludes the \ which
seperates the domain from the user name, it should be :DOMAIN\USERNAME , but
I am getting DOMAINUSERNAME which really is a pain. Anybody
know why this is happening and how I can overcome it ?

Thanks




您使用的是vbscript还是jscript?


我猜是jscript。 " \"是jscript的esc chr,你可能需要

用2\\取代它。


hth


al。



are you using vbscript or jscript?

I guess jscript. "\" is the esc chr for jscript, you might need to
replace it with 2 "\\"

hth

al.


" Harag" <公顷********************** @ softhome.net>在消息中写道

news:4e ******************************** @ 4ax.com ...
"Harag" <ha**********************@softhome.net> wrote in message
news:4e********************************@4ax.com...
On Mon,2004年9月13日08:17:57 +0000(UTC),dave
< da ** @ griffineng.co.uk>写道:
On Mon, 13 Sep 2004 08:17:57 +0000 (UTC), "dave"
<da**@griffineng.co.uk> wrote:
您好我已成功捕获用户登录详细信息,但我现在有一个新问题我已将登录分配给会话变量,

当我来使用存储在变量中的字符串时,它排除了\

从用户名中分离域名,它应该是:DOMAIN \USERNAME,
但是
我收到了DOMAINUSERNAME真的很痛苦。任何人都知道为什么会这样,以及我如何克服它?

谢谢
Hi I have succesfully captured the users login detail, but I now
have a new problem I have assigned the login to a Session Variable,
however
when I come to use the string stored in the variable it excludes the \
which
seperates the domain from the user name, it should be :DOMAIN\USERNAME ,
but
I am getting DOMAINUSERNAME which really is a pain. Anybody
know why this is happening and how I can overcome it ?

Thanks



你使用的是vbscript还是jscript?

我猜是jscript。 " \"是jscript的esc chr,你可能需要用2\\来取代它。



al /。



are you using vbscript or jscript?

I guess jscript. "\" is the esc chr for jscript, you might need to
replace it with 2 "\\"

hth

al.




vbscript



vbscript


" Harag" <公顷********************** @ softhome.net>在消息中写道

news:4e ******************************** @ 4ax.com ...
"Harag" <ha**********************@softhome.net> wrote in message
news:4e********************************@4ax.com...
On Mon,2004年9月13日08:17:57 +0000(UTC),dave
< da ** @ griffineng.co.uk>写道:
On Mon, 13 Sep 2004 08:17:57 +0000 (UTC), "dave"
<da**@griffineng.co.uk> wrote:
您好我已成功捕获用户登录详细信息,但我现在有一个新问题我已将登录分配给会话变量,

当我来使用存储在变量中的字符串时,它排除了\

从用户名中分离域名,它应该是:DOMAIN \USERNAME,
但是
我收到了DOMAINUSERNAME真的很痛苦。任何人都知道为什么会这样,以及我如何克服它?

谢谢
Hi I have succesfully captured the users login detail, but I now
have a new problem I have assigned the login to a Session Variable,
however
when I come to use the string stored in the variable it excludes the \
which
seperates the domain from the user name, it should be :DOMAIN\USERNAME ,
but
I am getting DOMAINUSERNAME which really is a pain. Anybody
know why this is happening and how I can overcome it ?

Thanks



你使用的是vbscript还是jscript?

我猜是jscript。 " \"是jscript的esc chr,你可能需要用2\\来取代它。



al /。



are you using vbscript or jscript?

I guess jscript. "\" is the esc chr for jscript, you might need to
replace it with 2 "\\"

hth

al.




我刚刚意识到我的问题出在其他地方!我在一个表中持有用户

登录,该表通过URL传递到新的网页,我从查询字符串中读取变量的
!这就是角色

迷路了我相信,但我仍然不知道如何治愈,所以更多

帮助将会感激不尽。


谢谢


Dave



I have just realised that my problem lies elsewhere ! I am holding the user
login in a table which is passed to a new webpage via the URL and I am
reading the the variable from the query string ! This is where the character
is getting lost I believe, but I still do not know how to cure, so any more
help would be gratefully received.

Thanks

Dave


这篇关于使用ASP捕获Windows登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆