Developing an online examination program with ASP (ix)

Source: Internet
Author: User
program | online database connection
I used Global.asa to run this application. Details of the run Global.asa file are described in the previous article-Using global.asa correctly.
< SCRIPT language=vbscript Runat=server >
Sub Application_OnStart
DBPath = "dbq=" & Server.MapPath ("Onlinetest.mdb")
dbconnectionstring = "Driver={microsoft Access DRIVER (*.mdb)};" & DBPath
Set application ("Conn") = Server.CreateObject ("ADODB. Connection ")
Application ("Conn"). Open dbconnectionstring
End Sub
Sub Application_OnEnd
Application ("Conn"). Close
Set application ("Conn") = Nothing
End Sub
Sub Session_OnStart
End Sub
Sub Session_OnEnd
End Sub
</script >
Conclusion
The application is very simple, but it is useful for sites that want to have online exams. Companies that have special uses in special areas can also use it, and the references and their details can be recovered from the table. Readers may also want to explore further to enhance the functionality of this application:
Show only one topic at a time.
You can set the problem pattern from difficult to easy.



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.