Hi,
I have a asp:button which allows a user to delete a record, and I wish to
prompt them with a client side confirmation. The javascript confirm
messagebox does show and the cancel button is fine, however when I click OK,
I expect the Server Side Postback OnClick event to fire, but it does not.
Any Ideas?
Here is the code:
<asp:Button ID="BDelete" runat="server" CssClass="butto nRed" Text="Delete"
Width="80px" OnClick="BDelet e_Click" UseSubmitBehavi or="False"
Visible="False" OnClientClick=" return confirm('Delete Work Order?');" /> 2 18439
you turned off bowser submit (UseSubmitBehav ior="False" ), then have the
client onclick do a return, so the asp.net client code to postback is not
called. either enable bowser submit or
OnClientClick=" if (!confirm('Dele te Work Order?')) return;"
-- bruce (sqlwork.com)
"Opa" <Op*@discussion s.microsoft.com wrote in message
news:16******** *************** ***********@mic rosoft.com...
Hi,
I have a asp:button which allows a user to delete a record, and I wish to
prompt them with a client side confirmation. The javascript confirm
messagebox does show and the cancel button is fine, however when I click
OK,
I expect the Server Side Postback OnClick event to fire, but it does not.
Any Ideas?
Here is the code:
<asp:Button ID="BDelete" runat="server" CssClass="butto nRed" Text="Delete"
Width="80px" OnClick="BDelet e_Click" UseSubmitBehavi or="False"
Visible="False" OnClientClick=" return confirm('Delete Work Order?');" />
Thanks Bruce. I'll go ahead and try this.
"bruce barker (sqlwork.com)" wrote:
you turned off bowser submit (UseSubmitBehav ior="False" ), then have the
client onclick do a return, so the asp.net client code to postback is not
called. either enable bowser submit or
OnClientClick=" if (!confirm('Dele te Work Order?')) return;"
-- bruce (sqlwork.com)
"Opa" <Op*@discussion s.microsoft.com wrote in message
news:16******** *************** ***********@mic rosoft.com...
Hi,
I have a asp:button which allows a user to delete a record, and I wish to
prompt them with a client side confirmation. The javascript confirm
messagebox does show and the cancel button is fine, however when I click
OK,
I expect the Server Side Postback OnClick event to fire, but it does not.
Any Ideas?
Here is the code:
<asp:Button ID="BDelete" runat="server" CssClass="butto nRed" Text="Delete"
Width="80px" OnClick="BDelet e_Click" UseSubmitBehavi or="False"
Visible="False" OnClientClick=" return confirm('Delete Work Order?');" />
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: yaya coco |
last post by:
I want to use button. My question is that
How can use server side and client site event at the same time.
That is:
I want to use button :
when The user click the button first of all, client side ask question "Are U
sure"
If yes then send server side function ?
Button Like this
|
by: ap |
last post by:
Hi, It is a quick question...
Is that impossible to print the page(Web Form .aspx file) in client side
using GDI+ like
PrintDocument pd = new PrintDocument();
pd.print();
As I know it is a server side printing... and is that possible to make it
to client side printing or it must be printed using javascript??
|
by: André |
last post by:
Hi,
how do you call a server-side button (onclick event) in javascript in
ASP.net (VB.net or C#)
Server code is in Code behind.
Thanks,
André
|
by: Progman |
last post by:
Lots of people know the development side of ASP.NET but what if I want to
have a business doing web hosting with servers supporting ASP.NET.
What server softwares will I have to install on my servers?
|
by: MasterNone |
last post by:
Can somebody suggest a way for me to bind the SelectText instead of
static text or show any cool methods to make a server side postback to
the same page instead of navigate.
Either of those solutions are acceptable. I am using a GridView control
and would like to have one fo these soltions.
Thanks in advance.
MasterOfNone
| |
by: Rodney |
last post by:
I want to notify browser of every time my server side event fires w/o
creating some sort of timer on client. Basically, can server notify
client w/o client initiating contact? Again, thx for any information
you can provide.
|
by: OceanBreeze |
last post by:
I have added a LinkButton to the web page programatically from server side code using ASP 2.0 and C# in my Page_Load method. I also associate this LinkButton with a LinkButton_ClickHandler_Edit and write LinkButton_ClickHandler_Edit in my C# code.
I have coded linkbutton as:
LB1.Text = "Edit";
LB1.Click += new System.EventHandler(LinkButton_ClickHandler_Edit);
Everything is fine as yet.
|
by: Chase Kang #52 |
last post by:
Using VB.NET, I've created a report that takes data from a stored
procedure, which goes into some aspx page controls, and inserts that
data into a pre-formatted Excel spreadsheet template by using Office
2003 COM objects. Unfortunately, I just found out that I can't install
Office on the server, so I need an alternative method. The report
needs to be in a certain format with specified fonts, bolds, colors,
etc..
Is there any way I can...
|
by: StuckOnWords |
last post by:
My goal:
I need to cause my web application to check for updates on a remote website twice a week around a certain time. The routine would download the xml content of a given page, parse it, and retrieve information for use on my website. So I need to trigger the routine which does this on a scheduled interval.
It seems to me I need a timer that is initiated from the global.asa. I really don't care if it runs every 5 minutes or so...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |