473,507 Members | 6,459 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Interaction with Message box from Web site

Hi All,
I have a problem I would love to be able to solve easily.
I want to be able to display a MessageBox from an ascx page with yes and no
buttons, then process the result from withing the ASCX code.

Considering the following psuedocode, I want the messagebox to appear at
<<Prompt>>. Is there any way I can do this?

Any help would be hugely appreciated

Rob Manger

============Code==============
private void btn_Click()
{
if (CheckA())
{
if (CheckB())
{
<<Prompt>>
If(Yes)
{
Continue()
}
else
{
Cancel and Set focus on textbox
}
}
}
}
Nov 16 '05 #1
2 1587
jscript. the button click implies a postback event. use jscript to set
the value of a hidden textbox and resubmit the form.

Nov 16 '05 #2
Hi,

I'd rather say the original poster should use __doPostBack from the client
JScript code to generate a postback event.
Also, the original code snippet should be split in two parts - the first one
rendering the JScript code for displaying the prompt and doing the postback,
and the second one handling the postback event.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

"prussianblue" <pr**********@gmail.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
jscript. the button click implies a postback event. use jscript to set
the value of a hidden textbox and resubmit the form.


Nov 16 '05 #3

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

Similar topics

1
1543
by: Helder Lima | last post by:
Hi. I've 2 questions that are linked: #1: I'm doing a site to manage a lot of unix scripts, a now how to call each script and how to pass their arguments, but most of this scripts are...
2
1554
by: richard | last post by:
Hi, I am about to start developing an n-tier system. And was hoping to get an insight into the best ways of doing this. Inparticular, I want to know how I can develop classes/component to be...
3
4110
by: Aaron Queenan | last post by:
I have a form which performs some asynchronous code. I want to display a wait cursor when it starts, and hide the wait cursor when it has completed. This part works fairly well, using: ...
2
2371
by: David Hearn | last post by:
I have a webform that I am creating. I need for the user to be able to pass it the path and name of a file on his/her local machine without any interaction. I don't want to have to use the file...
6
1896
by: Andy G | last post by:
I have a client that is really pushing me to start using Flash MX Professional to replace VS.NET. Main arguement is that it looks better and flows nicer than visual studio developed applcations...
2
1569
by: Francesco | last post by:
Hello, I'm Francesco and I write from Italy. I have a web site made in ColdFusion that makes an HTTP request to another site in coldfusion using the tag CFHTTP. The result of the call is sent to...
2
6878
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
0
1043
by: Joakim Hove | last post by:
Dear newsgroup, I have written a cgi script in Python, and it has worked fine for some time. Now the installed Python version has been upgraded to 2.4.1 and I am having problems with non ascii...
4
1387
by: Daniel.Benedek | last post by:
Hey there, I have a number of web services that interact with each other ( send requests to each other etc ). I would like to test the interaction between them ? Does anyone have any ideas as to...
0
2124
by: Omar Abid | last post by:
Reason of this project: The Microsoft.VisualBasic.Interaction class exposes many useful commands and methods that were available in Visual Basic like AppActivate, Beep, Callbyname... This...
0
7223
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
7314
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
7372
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...
1
7030
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
5623
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,...
1
5041
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...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.