Nov 30, 2018 03:10 AM|Ackerly Xu|LINK
You could use a counter to record the umber of exams.The counter is recorded in session.
Every time the user starts the exam, the counter will add one.
If its value is beyond 3, you could stop the exam.
Below is my code.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Dim record = Session("record")
If record Is Nothing Then
Session("record") = 1
Dim count As Int32 = Session("record")
Session("record") = count + 1
If count + 1 >= 4 Then
Response.Write("you have finished all the exams")