B
Ben
Hi,
When a user wants to start the application, aspnet checks a boolean value in
a field of the database.
If that value is 'false', then i want to execute a ALERT in javascript
telling the applicatin is closed.
This is a part of the .aspx.vb file:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
....
dtreader = comd.ExecuteReader
dtreader.Read()
myvalue = dtreader.GetValue(0)
dtreader.Close()
If start = False Then
...... alert("application is closed")
...... window.location.href="http://mywebsite/"
else
......
End If
When a user wants to start the application, aspnet checks a boolean value in
a field of the database.
If that value is 'false', then i want to execute a ALERT in javascript
telling the applicatin is closed.
This is a part of the .aspx.vb file:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
....
dtreader = comd.ExecuteReader
dtreader.Read()
myvalue = dtreader.GetValue(0)
dtreader.Close()
If start = False Then
...... alert("application is closed")
...... window.location.href="http://mywebsite/"
else
......
End If