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

Javascript in ASP.NET

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
Jun 22 '06 #1
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

Jun 22 '06 #2
> 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.
Jun 22 '06 #3
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

Jun 22 '06 #4
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


Jun 22 '06 #5

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

Similar topics

0
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...
0
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
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
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
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
agi2029
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,...

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.