473,804 Members | 3,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Run delete msgbox.

Hi, Good Day!

I need to display a msgbox asking user whether to delete a record or not
using javascript.
It works fine.

Later on user request to add in more info in that msgbox, displaying records
info like employee no, employee name, i.e. i need this msgbox to be display
during runtime & not during pageload.

I throw the javascript to be display in the Datagrid_Delete row module but it
required user to click the "delete" button twice in order to get the msgbox
to be displayed.

Can someone help?
Thanks in advanced.

rgds,
Phoebe.

Nov 20 '05 #1
3 1279
Cor
Hi Phoebe,

When you are mixing clientside programming with serverside programming and
you are talking about complex controls, I cannot believe that someone on a
newsgroup can help you to a solution.

This needs a lot of debugging, knowing exactly what you want, deep knowledge
of JavaScript, deep knowledge of the webform datagrid, deep knowledge of the
other webform controls, deep knowledge of the Page class, deep knowledge of
VB.net (or another serverside Net language).

I would first try if you cannot do it on the serverside if I was you.
But just my thought.

Cor

I need to display a msgbox asking user whether to delete a record or not
using javascript.
It works fine.

Later on user request to add in more info in that msgbox, displaying records info like employee no, employee name, i.e. i need this msgbox to be display during runtime & not during pageload.

I throw the javascript to be display in the Datagrid_Delete row module but it required user to click the "delete" button twice in order to get the msgbox to be displayed.

Can someone help?
Thanks in advanced.

Nov 20 '05 #2
Thanks Cor.

I really didn't think of it's complicity which mixing clientside &
serverside programming.

Anyway, thanks for your explanation.

"Cor" <no*@non.com> wrote in message
news:OP******** ******@tk2msftn gp13.phx.gbl...
Hi Phoebe,

When you are mixing clientside programming with serverside programming and
you are talking about complex controls, I cannot believe that someone on a
newsgroup can help you to a solution.

This needs a lot of debugging, knowing exactly what you want, deep knowledge of JavaScript, deep knowledge of the webform datagrid, deep knowledge of the other webform controls, deep knowledge of the Page class, deep knowledge of VB.net (or another serverside Net language).

I would first try if you cannot do it on the serverside if I was you.
But just my thought.

Cor

I need to display a msgbox asking user whether to delete a record or not
using javascript.
It works fine.

Later on user request to add in more info in that msgbox, displaying records
info like employee no, employee name, i.e. i need this msgbox to be

display
during runtime & not during pageload.

I throw the javascript to be display in the Datagrid_Delete row module

but it
required user to click the "delete" button twice in order to get the

msgbox
to be displayed.

Can someone help?
Thanks in advanced.


Nov 20 '05 #3
* "Phoebe." <ph********@hot mail.com> scripsit:
I need to display a msgbox asking user whether to delete a record or not
using javascript.
It works fine.

Later on user request to add in more info in that msgbox, displaying records
info like employee no, employee name, i.e. i need this msgbox to be display
during runtime & not during pageload.

I throw the javascript to be display in the Datagrid_Delete row module but it
required user to click the "delete" button twice in order to get the msgbox
to be displayed.


ASP.NET group:

<news://msnews.microsof t.com/microsoft.publi c.dotnet.framew ork.aspnet>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

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

Similar topics

3
14059
by: Asif Rahman | last post by:
Hi all! Please improve on the following code to make sure the record gets deleted only when the function returns false. Now I see the msgbox, but the record gets deleted no matter the user clicks yes or no. Thanks in advance. Asif =======================
8
4068
by: Steve | last post by:
I have several pairs of synchronized subforms in an application. I have a Delete button for each pair that uses the following code or similar to delete a record in the second subform: DoCmd.SetWarnings False DoCmd.RunCommand acCmdDeleteRecord DoCmd.SetWarnings True End If ExitHere: Me!SubName.SetFocus
3
3980
by: Uwe Range | last post by:
Hi to all, I am displaying a list of records in a subform which is embedded in a popup main form (in order to ensure that users close the form when leaving it). It seems to be impossible to delete a record in this subform. When I switched modal off and tried to delete a record from the list, I deleted a record on another form (below the popup form).
24
7572
by: biganthony via AccessMonster.com | last post by:
Hi, I have the following code to select a folder and then delete it. I keep getting a Path/File error on the line that deletes the actual folder. The line before that line deletes the files in the folder but I get the error message when the procedure attempts to delete the folder selected in the BrowseforFolderbyPath function. How can I get it to delete the folder that the user has selected in the Browse for Folder dialog?
2
2268
by: Swinky | last post by:
I have added a delete control to my form with code in the On Click property. The delete works well, but if I cancel the delete action, the record is still deleted. Here's the code: MsgBox "Confirm delete. Once you confirm, the record will no longer exist.", vbOKCancel strSQL = "DELETE FROM TOrdAck WHERE OANo=" & Me!OANo Set dbs = CurrentDb
1
1955
by: Swinky | last post by:
I have added code to delete a record (and records in related tables) in the OnClick property: MsgBox "Confirm delete. Once you confirm, record will no longer exist.", vbOKCancel strSQL = "DELETE FROM TOrdAck WHERE OANo=" & Me!OANo Set dbs = CurrentDb dbs.Execute strSQL, dbFailOnError MsgBox dbs.RecordsAffected & " record(s) deleted"
4
2053
by: Swinky | last post by:
I have added code to delete a record (and records in related tables) in the OnClick property: MsgBox "Confirm delete. Once you confirm, record will no longer exist.", vbOKCancel strSQL = "DELETE FROM TOrdAck WHERE OANo=" & Me!OANo Set dbs = CurrentDb dbs.Execute strSQL, dbFailOnError MsgBox dbs.RecordsAffected & " record(s) deleted"
4
2588
by: Craggy | last post by:
Hi, I am trying to pop up a yes/no message box so that a user can delete a record in a continuous form. The default delete message is a bit sloppy because it seems to move the continuous form to the position of the record u want to delete. If you then choose to not to delete the record it looks to a user as if it has deleted every record before the one you chose not to delete. To get around this I made a yes/no msgbox pop up and only after...
2
15150
kcdoell
by: kcdoell | last post by:
Hello I have a code where I want to delete the records that are found in my DAO recordset. I took a stab at this for the first time and got it to work but it is only delete one record at a time. If I execute the code again my record count will be minus one and then it will delete another single record etc etc until there are no records to delete. How could I create a loop statement so that I don't have to keep on executing the code??? Below...
10
7178
beacon
by: beacon | last post by:
Hi everybody, This is probably going to sound unorthodox, but I have to log records that are deleted...I know, go figure. Anyway, I have a form with a (continuous) subform, and on the subform I have a command button, called cmdDelete, that launches a dialog form, called frmDeleteCurrentRecord, where the user has to enter their name and a reason. I have managed, through a ton of trial and tribulation, found a way to delete the current...
0
10564
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, 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...
1
10308
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,...
0
9134
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, 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...
1
7609
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6846
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();...
0
5513
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...
0
5645
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2981
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 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...

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.