CodeCharge Studio
User Run-Time Property (ASP)
Applies to
Connection Object
Type
string
Access
read/write
Syntax
object.User [=value]
Description
This property contains a user name used to authenticate database connection access. For some providers both user name and password are included in a connection string.
Examples
The following example opens database connection to the database file located in
the current directory using specified user account data.
This code may be inserted into the page's After
Initialize event to open additional page-specific connection object.
Dim DBConnection1
DBConnection1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database.mdb")
DBConnection1.User = "admin"
DBConnection1.Password = "SeCrEt"
DBConnection1.Open
See also
ConnectionString property
Password property
On-line, printable versions and updates