473,408 Members | 1,951 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,408 software developers and data experts.

Message Box At Any Time

Ben
Hello,

I am trying to convert a windows app to a web app and I have come accross a
problem I was hoping someone could help with.

Im creating a page where the user inputs some values and presses 'submit'.
I have the code done for the click even of the submit button, however I need
to create a message box with 2 buttons. These buttons will be used to
redirect the user to another page based on which button was pressed. I need
the message box to return a value so that I could determine which button was
pressed.

How can I accomplish this? Thanks!
ben
Mar 24 '06 #1
2 1151
=?Utf-8?B?QmVu?= wrote on 24 mrt 2006 in
microsoft.public.inetserver.asp.general:
I am trying to convert a windows app to a web app and I have come
accross a problem I was hoping someone could help with.

Im creating a page where the user inputs some values and presses
'submit'. I have the code done for the click even of the submit
button, however I need to create a message box with 2 buttons. These
buttons will be used to redirect the user to another page based on
which button was pressed. I need the message box to return a value so
that I could determine which button was pressed.

How can I accomplish this? Thanks!


Not with ASP, because ASP is serverside and you would not want your box to
appear on the server's monitor, if there is one?

Clientside depends on the clientside scripting language and is off-topic on
this ASP NG.

==================================

btw, but please follow up on a clientside javascript NG:

<form onsubmit='return confirm("Sure?")'>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 24 '06 #2
Windows apps and Web apps are incredibly different from each other. Without
deviating into the world of client-side VBScript, which you should never do,
you have to stick with what is available in the world of Web browsers. That
is to use client-side Javascript. Your options are "confirm" and "alert".
Confirm gives "OK" and "Cancel," in most, if not all, browser, and "alert"
just gives an OK button.
You could do something weak like:
<script type="text/javascript">
if(confirm('Click OK to go to location 1. Click cancel to go to location
2')) {
location.href = 'page1.asp';
} else {
location.href = 'page2.asp';
}
</script>
Or, create a new Web page that has two buttons or links or whatever on them
and make them say whatever you want and take the person wherever you like.

Ray at work
"Ben" <ben_1_ AT hotmail DOT com> wrote in message
news:BE**********************************@microsof t.com...
Hello,

I am trying to convert a windows app to a web app and I have come accross
a
problem I was hoping someone could help with.

Im creating a page where the user inputs some values and presses 'submit'.
I have the code done for the click even of the submit button, however I
need
to create a message box with 2 buttons. These buttons will be used to
redirect the user to another page based on which button was pressed. I
need
the message box to return a value so that I could determine which button
was
pressed.

How can I accomplish this? Thanks!
ben

Mar 24 '06 #3

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

Similar topics

1
by: Denis Correard | last post by:
I'm trying to create a page that automaticaly send email. I'm using the system.web.mail namespace but from time to time i'm getting this error: Could not access 'CDO.Message' object. Same time...
9
by: Mike | last post by:
How do I prevent SQL Server 2000 from posting successful backup completion messages to the Windows 2000 Application Event Log? I have scheduled jobs which backup my transaction logs on 50+...
9
by: Computer Architecture Student | last post by:
Hi guys! I want to post a very important message, but i want to change the date or I rather hide it. How can i do this? is that possible? Please let me know as soon as possible, thanks!
3
by: Brian Keating EI9FXB | last post by:
Hello again, I've already placed a few posts on this topic. This time i've a simple application that exhibits my problem, I've placed sample solution 8k on my website should anyone be interested...
6
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
9
by: JTrigger | last post by:
When I compile my project using the IDE on a development machine it works just fine. When I compile it on the server using csc.exe, I get the following error when I try to bring it up in the web...
1
by: gh0st54 | last post by:
Hi I'm sending email with system.web.mail but the date is the date of the server, which is in a different time zone. how can i send the message with a different date time thanks
2
by: ayman723 | last post by:
hi; I have this code in my book and when I copied it into my compiler into two files, one is header and the other is .cpp. it gives me an error, I'm sure I copied it right but can't figure out the...
2
by: EricDeWerth | last post by:
When I try to call db2move $todbname load from a shell script it will give me this error in the log. When I call it from the command line using the exact same dataset it works perfectly. Does...
9
by: =?Utf-8?B?a2FyaW0=?= | last post by:
Hello All, Is it possible in vb 08 to set a message box to pop up when you click a button and have a cod that sets a time in seconds so that lets say after 5 sec. the message box closes by itself...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.