473,398 Members | 2,212 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,398 software developers and data experts.

Problem get result of a confirm dialogbox after some server code

Hi...

I have a problem with a confirm dialog box. I want to
execute some code and then prompt the user with a confirm
dialog box who's message will depend on the result of the
execution from the server. I made a function Confirm
(Message) that sends the javascript of the confirm
function via a RegisterStartupScript method. The result
of the dialog is sent to a hidden field on the caller's
page, so I could react to the user decision in the
page_load of the caller's page. The problem is that the
script appears after the page_load (normal 'cause I used
RegisterStartupscript), and no postback are raised when
the dialog box closed.

Is there a way to call a postback in some client script
or another way to deal with such problem. I tried with
some Remote Script but it didn't work...

Please help me... Thanks a lot for your time :)

Billy
Nov 18 '05 #1
1 1925
Check out this article to know how to do postback using client side scripts
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpcongeneratingclient-sidejavascriptforpostback.asp

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Billy" <bi***********@hotmail.com> wrote in message
news:10****************************@phx.gbl...
Hi...

I have a problem with a confirm dialog box. I want to
execute some code and then prompt the user with a confirm
dialog box who's message will depend on the result of the
execution from the server. I made a function Confirm
(Message) that sends the javascript of the confirm
function via a RegisterStartupScript method. The result
of the dialog is sent to a hidden field on the caller's
page, so I could react to the user decision in the
page_load of the caller's page. The problem is that the
script appears after the page_load (normal 'cause I used
RegisterStartupscript), and no postback are raised when
the dialog box closed.

Is there a way to call a postback in some client script
or another way to deal with such problem. I tried with
some Remote Script but it didn't work...

Please help me... Thanks a lot for your time :)

Billy

Nov 18 '05 #2

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

Similar topics

10
by: Randell D. | last post by:
Folks, Perhaps someone can figure this out - this is 'the process of my script' I have a form whereby I can add multiple contacts to a single address. There is only one...
9
by: Bartosz Wegrzyn | last post by:
I need help with sessions. I createt set of web site for nav with authorization. first I go into main.php which looks like this: <?php //common functions include_once '../login/common.php';...
3
by: Matthew | last post by:
I am have written a medium sized program and everything works fine except for one piece. At a certain point in the program I want to do a simple user confirmation, eg Are you sure ? y/n. The...
4
by: Max | last post by:
Hello. This is the first time I've posted to a newsgroup, and I do this because I'm in desperate need of help. I'm working a user management system, and when I activate a user that has registered...
1
by: foreman | last post by:
Hello Everybody: I am trying out DialogBox, and I have been trying to press the OK Button on the dialogbox hoping I can receive the OK DialogResult to Main Form. Below is my OK button click...
1
by: CGuy | last post by:
Hi, I have the following code in my aspx page <form id="Form1" method="post" runat="server"> <asp:TextBox ID="txtTest" Runat="server" /> <asp:RequiredFieldValidator ID="valText"...
3
by: Tarun Upadhyaya | last post by:
Hi, I am facing strange problem I read Scott mitchell's article about ASP.NET and javascript at ...
7
by: Trickynick1001 | last post by:
Hi, a newbie here. I don't have a real firm grasp on the idea of Javascript, as I'm used to programming in Qbasic and C. I'm not used to OOP. Anyway, I really don't have any idea what the...
2
osward
by: osward | last post by:
Hello there, I am using phpnuke 8.0 to build my website, knowing little on php programing. I am assembling a module for my member which is basically cut and paste existing code section of...
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
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
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
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...

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.