Hello!
I'm trying to execute a code so when a record in a DetailsView is
deleted, it will first have to be confirmed (with as little code as
possible). The DetailsView is attacked to an ObjectDataSourc e. I was
thinking of having the ItemDeleting command 'intercept' the delete
command and make a confirmation button visible on the screen, THEN when
the person clicks the button the ObjectDataSourc e executes the delete
command. My question is, is there a way, in the ItemDeleting command
to stop the deletion command from executing?
Thanks for any help! 2 3116
Here's some server side code that uses javascript to display a confirmation
message.
myDeleteButton. Attributes.Add( "onclick", _
"return confirm('Are you sure you want to delete?');")
In this example, the Delete button will post back only if the person
confirms they want to delete. Otherwise the server code is never called in
response to the button click.
Here's more info: http://SteveOrr.net/articles/ClientSideSuite.aspx
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
"MRW" <mw*****@yahoo. comwrote in message
news:11******** **************@ j44g2000cwa.goo glegroups.com.. .
Hello!
I'm trying to execute a code so when a record in a DetailsView is
deleted, it will first have to be confirmed (with as little code as
possible). The DetailsView is attacked to an ObjectDataSourc e. I was
thinking of having the ItemDeleting command 'intercept' the delete
command and make a confirmation button visible on the screen, THEN when
the person clicks the button the ObjectDataSourc e executes the delete
command. My question is, is there a way, in the ItemDeleting command
to stop the deletion command from executing?
Thanks for any help!
Mmm... I'll have to take a look at it. Thanks!
My original idea was to place my DetailsView in one set of div tags,
and my confirmation line (with record information) in another. When
the delete button is pressed, I wanted the first div tag to become
invisible and the second one to become visible.
Oh well...
Steve C. Orr [MVP, MCSD] wrote:
Here's some server side code that uses javascript to display a confirmation
message.
myDeleteButton. Attributes.Add( "onclick", _
"return confirm('Are you sure you want to delete?');")
In this example, the Delete button will post back only if the person
confirms they want to delete. Otherwise the server code is never called in
response to the button click.
Here's more info: http://SteveOrr.net/articles/ClientSideSuite.aspx
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
"MRW" <mw*****@yahoo. comwrote in message
news:11******** **************@ j44g2000cwa.goo glegroups.com.. .
Hello!
I'm trying to execute a code so when a record in a DetailsView is
deleted, it will first have to be confirmed (with as little code as
possible). The DetailsView is attacked to an ObjectDataSourc e. I was
thinking of having the ItemDeleting command 'intercept' the delete
command and make a confirmation button visible on the screen, THEN when
the person clicks the button the ObjectDataSourc e executes the delete
command. My question is, is there a way, in the ItemDeleting command
to stop the deletion command from executing?
Thanks for any help!
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tuhin Kumar |
last post by:
Hi,
I have a requirement on improving the deletion rate on on records
of a table.
The table contains 5 million records, but since deleting everything
matching the condition at one go was giving the ROLLBACK segment
allocation error, the query was called in a loop and deleting 2000
rows at one interation.
My query is:
DELETE FROM Table1 WHERE TimeStamp >= TO_DATE('2003-11-30 18:30:00',
'YYYY-MM-DD HH24:MI:SS') and TimeStamp <=...
|
by: Vic |
last post by:
Hi all,
When I test the Delete multi table function in MySQL,
DELETE table_name ...]
FROM table-references
I accidentally delete all data in one table. All data in that table
are gone when I try to select them out in Control Center. But when I
go into the /mysql/data/mydatabase/, I see a MYD, MYI, frm for that
table. And it seems that data is still inside the MYD, althought it's
|
by: sumit |
last post by:
i am trying to restrict deletion on local hard drives i have expertise
in c, c++, and delphi if the solution can be found on any of the above
languages plz inform me.
|
by: Pmb |
last post by:
Can someone suggest a good editor? I'm using WinEdit right now and I'm not
that happy with it (I seem to have an old edition and I'm not sure if it
was made by the same organization at www.winedit.com). I'm trying the new
version now but would like some advice and comments on other editors and how
you like them.
Thanks
Pmb
|
by: Christopher Pisz |
last post by:
currently my node is like so with everything public:
class Quadtree_Node
{
public:
Quadtree_Node(Quadtree_Node * parent, Bounding_Box & bounds);
~Quadtree_Node();
void Subdivide(float smallest_node);
const Quadtree_Node *& GetTopLeft();
Bounding_Box m_bounds; // Bounding Coordinates of this node
| |
by: TJS |
last post by:
javascript "confirm" fires after deletion instead of before deletion.
how do I get this to stop the processing ?
code
==================
Sub ShowAlert(ByVal s As string)
RegisterClientScriptBlock("CSP-showconfirm-function", _
"<s"+"cript language=""JavaScript"">" & vbCrLf & _
|
by: Rune Froysa |
last post by:
I have one table with columns that are used as foreign-keys from
several other tables. Sometimes deletion from this table takes +5
seconds for a single row. Are there any utilities that can be used to
figure out why the deletion takes so long? "ANALYZE DELETE FROM foo
WHERE bar=gazonk" doesn't really help as it only explains how the
where statement is resolved, and not what postgres has to do to
preserve database integrity.
Regards,
|
by: A_Republican |
last post by:
I am interested in writing my own secure file deletion program. I want to be
able to read and write to my hard drive directly. My application will seach
my hard drive for all locations marked for deletion and then replace it with
"x" or something that securely removes previoius data.
My question is what objects, API calls, etc, etc do I use to read and write
directly to the hard drive?
--
Regards,
Shaun Goldston
|
by: simonf |
last post by:
I have been developing a website over the past couple for my wife who is an artist. During that time I have taught myself PHP and mySQL and developed a content management system that allows her to upload and edit pictures, and and delete information like links and exhibitions and generally stop hassling me.
I have now extended it cover a couple of her art groups where she can create and delete new artists and they then have the same control....
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: 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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: 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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |