hello,
I've been using Javascript in ASP.Net before, but I cannot figure out how to
solve this particular puzzle. I was mostly registering JS at startup, but
this is not a case.
The task is very trivial: The Sub is running, when certain condition is met,
the user gets a message box with OK and Cancel buttons, asking him, whether
he wants to continue. If he clicks OK, the routine keeps running, if
Cancel - the Sub exits. That's it, a very common task in Windows
applications. Is it possible to do the same in ASP.NET?
I would appreciate any suggestions.
Thank you,
--
Peter Afonin 4 922
Peter,
You need to call javascript method window.confirm(...);
Eliyahu
"Peter Afonin" <pa*****@hotmail.com> wrote in message
news:Oe**************@TK2MSFTNGP02.phx.gbl... hello,
I've been using Javascript in ASP.Net before, but I cannot figure out how to solve this particular puzzle. I was mostly registering JS at startup, but this is not a case.
The task is very trivial: The Sub is running, when certain condition is met, the user gets a message box with OK and Cancel buttons, asking him, whether he wants to continue. If he clicks OK, the routine keeps running, if Cancel - the Sub exits. That's it, a very common task in Windows applications. Is it possible to do the same in ASP.NET?
I would appreciate any suggestions.
Thank you,
-- Peter Afonin
> The task is very trivial: The Sub is running, when certain condition is met, the user gets a message box with OK and Cancel buttons, asking him, whether he wants to continue. If he clicks OK, the routine keeps running, if Cancel - the Sub exits. That's it, a very common task in Windows applications. Is it possible to do the same in ASP.NET?
If you mean the sub is a server side process and you want to pop up a
JavaScript dialog to the web user part way through, then no. You'll have to
perform part of the processing, request information from the user, then start
a new sub with the previous data and any new information the user supplies.
The JavaScript "Confirm" method should do the trick.
Here are the details, along with some free components that will do it for
you: http://SteveOrr.net/articles/ClientSideSuite.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Peter Afonin" <pa*****@hotmail.com> wrote in message
news:Oe**************@TK2MSFTNGP02.phx.gbl... hello,
I've been using Javascript in ASP.Net before, but I cannot figure out how to solve this particular puzzle. I was mostly registering JS at startup, but this is not a case.
The task is very trivial: The Sub is running, when certain condition is met, the user gets a message box with OK and Cancel buttons, asking him, whether he wants to continue. If he clicks OK, the routine keeps running, if Cancel - the Sub exits. That's it, a very common task in Windows applications. Is it possible to do the same in ASP.NET?
I would appreciate any suggestions.
Thank you,
-- Peter Afonin
Thank you all for your help!
Peter
Steve C. Orr [MVP, MCSD] wrote: The JavaScript "Confirm" method should do the trick.
Here are the details, along with some free components that will do it for you: http://SteveOrr.net/articles/ClientSideSuite.aspx
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"Peter Afonin" <pa*****@hotmail.com> wrote in message news:Oe**************@TK2MSFTNGP02.phx.gbl... hello,
I've been using Javascript in ASP.Net before, but I cannot figure out how to solve this particular puzzle. I was mostly registering JS at startup, but this is not a case.
The task is very trivial: The Sub is running, when certain condition is met, the user gets a message box with OK and Cancel buttons, asking him, whether he wants to continue. If he clicks OK, the routine keeps running, if Cancel - the Sub exits. That's it, a very common task in Windows applications. Is it possible to do the same in ASP.NET?
I would appreciate any suggestions.
Thank you,
-- Peter Afonin
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |