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

How to show a confirm box with Button Click

ad
I can only use the OnClientClick event of a button to show a confirm dialog
like:
OnClientClick="return confirm('Are you sure?');"

Can we show the confirm dialog by progrm, net triggered by a button click?
Nov 19 '05 #1
3 5589
"ad" <fl****@wfes.tcc.edu.tw> wrote in
news:eS**************@TK2MSFTNGP09.phx.gbl:
I can only use the OnClientClick event of a button to show a confirm
dialog like:
OnClientClick="return confirm('Are you sure?');"

Can we show the confirm dialog by progrm, net triggered by a button
click?

No, .NET events are handled on the server side - thus you'll need to build
confirmation logic on the server side.

OnClickClick handles events on the client (browser side).
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com
Nov 19 '05 #2
ad
Yes, I know.
How can I show a confirm dialog when I need usr's confirm in service side?
"Lucas Tam" <RE********@rogers.com> ¼¶¼g©ó¶l¥ó·s»D:Xn***************************@127.0 .0.1...
"ad" <fl****@wfes.tcc.edu.tw> wrote in
news:eS**************@TK2MSFTNGP09.phx.gbl:
I can only use the OnClientClick event of a button to show a confirm
dialog like:
OnClientClick="return confirm('Are you sure?');"

Can we show the confirm dialog by progrm, net triggered by a button
click?

No, .NET events are handled on the server side - thus you'll need to build
confirmation logic on the server side.

OnClickClick handles events on the client (browser side).
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com

Nov 19 '05 #3
"ad" <fl****@wfes.tcc.edu.tw> wrote in
news:Oh*************@TK2MSFTNGP15.phx.gbl:
Yes, I know.
How can I show a confirm dialog when I need usr's confirm in service
side?

I believe you'll have to build your own - i.e. load a user control with
Yes/No into the page and check for the value.
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com
Nov 19 '05 #4

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

Similar topics

5
by: Logger | last post by:
Help, I’m trying to implement a confirm button on an asp.net page. I have it attached to a asp:button control. In the button1 click event I call the CreateConfirmBox subroutine. The Box comes...
3
by: ad | last post by:
I want user can confirm before delete records ? How can I show a confirm dialog when users press a button?
5
by: Dave | last post by:
I'm tearing my hair out over this one. Using VS 2003, inline (not code-behind), vb.net. I have a button (btnClear) that calls a vb routine that goes into sql server and truncates a table. ...
0
by: JT | last post by:
In looking around on the internet to find out how to use a "messagebox"-like window on a webform, I have come across a few examples of how to do so from the "onclick" event of a button. In my...
1
by: chris | last post by:
Hi, In ASP.NET page, when my user tries to edit a record in gridview, I need to display a confirmation message, if another user is editing the same record. Since the confirmation message will...
2
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the confirm box to say yes/no or default to cancel?...
2
by: randy.buchholz | last post by:
I want to use a confirm ("Are you sure?") for deletes but can't seem to get it to work without using built in commands (delete, insert, etc) If I use a button click event the process continues to...
3
by: ghjk | last post by:
I have a web page which is used to enter user data. In there I have 4 buttons named as "Submit, Confirm,Edit,Cancel". User should enter data and click "Submit " button. Then I want to display all...
3
by: swethak | last post by:
Hi, I want to applying the styles for confirm box. For this purpose i have used below code. Here i am writting my code <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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
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...

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.