Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

about the connection settings

is there anyone who can help me on how to create an asp file, containing the connection settings(connection,odbc,...) instead of rewriting the same code in each asp page. i would appreciate your help.

Comments

  • cyberclipcyberclip Member Posts: 3
    : is there anyone who can help me on how to create an asp file, containing the connection settings(connection,odbc,...) instead of rewriting the same code in each asp page. i would appreciate your help.
    :
    <% dim dbobj
    set dbobj = server.createobject("adodb.connection")
    dbobj.open "databasename"
    sqlqry = "select * from tablename"
    set rs = dbobj.execute(sqlqry)
    %>

    put above type of connection in one asp page and include above where ever u want through in your asp pages.
    if it works i put my problem on message board find solution for me also.

    cyberclip
Sign In or Register to comment.