|
 |
aspx thread: use of Quotes with variables
Message #1 by "Joe Ehrenfeld" <joee@v...> on Tue, 4 Mar 2003 18:21:52
|
|
How do I assign this string into a variable:
Dim myDE As New DirectoryServices.DirectoryEntry
("LDAP://one.domain.com", "user", "pwd")
I want to be able to assign ("LDAP://one.domain.com", "user", "pwd") as
the variable Path so that I can do this:
Dim myDE As New DirectoryServices.DirectoryEntry(CStr(Application("Path")))
i have tried various use of the quotes and I can't get it to work.
thanks so much!!
Message #2 by "Paul Riley" <rilez@t...> on Tue, 4 Mar 2003 18:35:23 -0000
|
|
Use """LDAP://one.domain.com"", ""user"", ""pwd""", that should work
-----Original Message-----
From: Joe Ehrenfeld [mailto:joee@v...]
Sent: 04 March 2003 18:22
To: ASP.NET
Subject: [aspx] use of Quotes with variables
How do I assign this string into a variable:
Dim myDE As New DirectoryServices.DirectoryEntry
("LDAP://one.domain.com", "user", "pwd")
I want to be able to assign ("LDAP://one.domain.com", "user", "pwd") as
the variable Path so that I can do this:
Dim myDE As New
DirectoryServices.DirectoryEntry(CStr(Application("Path")))
i have tried various use of the quotes and I can't get it to work.
thanks so much!!
Message #3 by "Rohit Arora" <rohit_arora@i...> on Wed, 5 Mar 2003 09:25:44 +0530
|
|
use escape character \
"(\"LDAP://one.domain.com\", \"user\", \"pwd\")"
Regards
Rohit Arora
Intersolutions (P) Ltd
B - 21, Sector 58,
Noida - 201301
Tel : 91-2585703/04/05 Extn: 229
-----Original Message-----
From: Joe Ehrenfeld [mailto:joee@v...]
Sent: Tuesday, March 04, 2003 6:22 PM
To: ASP.NET
Subject: [aspx] use of Quotes with variables
How do I assign this string into a variable:
Dim myDE As New DirectoryServices.DirectoryEntry
("LDAP://one.domain.com", "user", "pwd")
I want to be able to assign ("LDAP://one.domain.com", "user", "pwd") as
the variable Path so that I can do this:
Dim myDE As New DirectoryServices.DirectoryEntry(CStr(Application("Path")))
i have tried various use of the quotes and I can't get it to work.
thanks so much!!
|
|
 |