Programming Articles

  • Connecting to MSSQL in ASP without a DSN

    This script demonstrates connecting to a MSSQL database in ASP without a DSN. The script will make the connection and then output all the rows of a specified table. Dim objConn, rsRecord, strSQL, tableName, address, username, password, database Define the variables we will use in this script. Set objConn = Server.CreateObject("ADODB.Connection") Create the connection object. We will use ADO for the connection. address...

    Read more...
    1/5/2008 1:51:54 AM Category Database Connection Strings Comments 0
  • Connecting to MySQL in ASP with a DSN

    This script demonstrates connecting to a MySQL database in ASP with a DSN. The script will make the connection and then output all the rows of a specified table. Dim objConn, rsRecord, strSQL, tableName, dsnName, dsnUser, dsnPass, database Define the variables we will use in this script. Set objConn = Server.CreateObject("ADODB.Connection") Create the connection object. We will use ADO for the connection. dsnName...

    Read more...
    1/5/2008 1:50:52 AM Category Database Connection Strings Comments 0
  • Connecting to MySQL in ASP without a DSN

    This script demonstrates connecting to a MySQL database in ASP without a DSN. The script will make the connection and then output all the rows of a specified table. Dim objConn, rsRecord, strSQL, tableName, address, username, password, database Define the variables we will use in this script. Set objConn = Server.CreateObject("ADODB.Connection") Create the connection object. We will use ADO for the connection. address...

    Read more...
    1/5/2008 1:50:08 AM Category Database Connection Strings Comments 0
  • Connecting to MS Access in ASP with a DSN

    This script demonstrates connecting to a MS Access database in ASP with a DSN. The script will make the connection and then output all the rows of a specified table.

    Dim objConn, rsRecord, strSQL, tableName, dsnName, dsnUser, dsnPass
    Define the variables we will use in this script....

    Read more...
    1/5/2008 1:49:01 AM Category Database Connection Strings Comments 0
  • Connecting to MS Access in ASP without a DSN

    This script demonstrates connecting to a MS Access database in ASP without a DSN. The script will make the connection and then output all the rows of a specified table. Dim objConn, dbPath, rsRecord, strSQL, tableName Define the variables we will use in this script. Set objConn = Server.CreateObject("ADODB.Connection") Create the connection object. We will use ADO for the connection. dbPath = "/db/test.mdb"     'The...

    Read more...
    1/5/2008 1:47:08 AM Category Database Connection Strings Comments 0
  • Using the window.close method

    It may be needed that you need to give a close link in the popup you created. The window.close () method could be used to close a window. However, there are certain security restrictions for using the close () method. The...

    Read more...
    11/29/2007 3:03:26 AM Category Java Script Comments 0
  • Using the window.open method

    The syntax of the window.open method is given below: open (URL, windowName[, windowFeatures]) URL The URL of the page to open in the new window. This argument could be blank. windowName

    Read more...
    11/29/2007 3:00:51 AM Category Java Script Comments 0
Archive