473,287 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

how to execute an 'Alert'-windows within vb?

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
May 15 '06 #1
2 4206
In c#

Response.Write("<script
language='javascript'>alert('hello');</script>");

Ο/Η Ben *γραψε:
Hi,

When a user wants to start the application, aspnet checks a boolean valuein
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


May 15 '06 #2
Ben
Thanks, i'll try...

<ma******@gmail.com> schreef in bericht
news:11*********************@i40g2000cwc.googlegro ups.com...
In c#

Response.Write("<script
language='javascript'>alert('hello');</script>");

?/? 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

May 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jess ngel | last post by:
Hello. I have a javascript object with one attribute (name) and one method (showName). Each object instance appends a DIV to the document's body. I want that when the user clicks over the DIVS...
2
by: jm | last post by:
I have a parent window: <script language="javascript"> function doSearch() { result=showModalDialog("searchmni.aspx?lastname=smith"); alert(result); } </script>
1
by: Michael SL | last post by:
Here is my problem. I have a delete record button. I want to prompt the user "Do you really want to delete?". If the user clicks 'OK' then I want to execute the CodeBehind on the server side to...
4
by: Bundy | last post by:
I am trying to create a function that executes all the functions listed in an array. I cannot get it to work. <html> <body> <script language="JavaScript"> var length_of_array = 2; var...
1
by: marcyb | last post by:
I need this to charge sales tax on if oklahoma resident is checked <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
8
by: M.L. | last post by:
Hello. I created a form using JS validation with the form tag as follows: <form name="form1" action="dynaform.php" method="post" onsubmit="return pvg_sub();"> The js validation script sends...
3
by: pablosuk78 | last post by:
Dear coders, I'm facing a problem and after few research I found that many ppl were looking around for the same solution, hope someone more expert than me could give a good help. I created an...
16
by: perdeepOsingh | last post by:
Hi, What I am trying here is that from my first file I am making a call to handler.php file //////////////////////////////FirstFile//////////////////////// <html> <head> <script...
7
by: Peter | last post by:
I have a HoverMenuExtender which contains an asp:PlaceHolder, this place holder has a User Control and this control contrains a Button. The problem I am having is after the button fires the click...
1
by: Ernie13 | last post by:
Hi everybody, I've Googled some hours now to find a solution, but I'm really stuck. This is my situation: I have a <div id='content'> where the content is loaded with Ajax, and some buttons...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.