Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access_asp thread: Confirmation box before delete record???


Message #1 by "Vandael Tim" <vandael_tim@h...> on Wed, 10 Apr 2002 07:24:55
Hey, 

i am busy with ASP nog for about 3 weeks,
my admin page looks good, but there is a problem.
When i want to delete a record, i want him to ask me a confirmation
of what i am doing.
So that i can not by accident, delete a record.

I have tried with some java-scripts, but there was still the same problem,
when i pressed NO on the confirmation box, he still deleted the record.

greetz

Tim
Message #2 by "Vandael Tim" <vandael_tim@h...> on Wed, 10 Apr 2002 07:26:53
This i my code for now on.

Tim

<%
	response.write ("<table width=""100%"" border=""1"" 
align=""center""><tr><td width=""50"" 
align=""center""><b>SheetID</b></td><td width=""120"" 
align=""center""><b>Workcenter Code</b></td><td align=""center"" 
width=""120""><b>Artikel Code</b></td><td align=""center"" 
width=""80""><b>Afdeling</b></td><td align=""center"" 
width=""170""><b>Omschrijving</b></td><td align=""center"" ><b>File-
naam</b></td><td align=""center"" ><b>Update</b></td><td align=""center"" 
><b>Delete</b></td></tr>")
		do until rsSoort.EOF 
			response.write ("<tr>")
			response.write ("</td><td align=""center"">")
			response.write rsSoort("instrID")
			response.write ("<td align=""center"">")
			response.write rsSoort("insMachine")
			response.write ("</td><td align=""center"">")
			response.write rsSoort("insArtikel")
			response.write ("</td><td align=""center"">")
			response.write rsSoort("insAfdeling")
			response.write ("</td><td align=""center"">")
			response.write rsSoort("insOmschrijving")
			response.write ("</td><td align=""center"">")
			%>
			<a href="e:\-== Nexans ==-\shopfloor\files\<%
=rsSoort("insFileNaam")%>" alt="<%=rsSoort("insFileNaam")%>" 
TARGET="_blank"><%=rsSoort("insFileNaam")%></a>
			<%
			response.write ("</td><td align=""center"" 
valign=""center"">")
		
'FORM Update van artikel---------------------------------------------------
--------
		' TEST DOELEINDEN : response.write rsSoort("instrID")
			%>
			<form action="update.asp" name="update" 
id="update" method="POST">
				<input type="hidden" name="artid" value="<%
=rsSoort("instrID")%>">
				<input type="Submit" name="update" 
value="update">
			</form>
			<%
			response.write ("</td><td align=""center"" 
valign=""center"">")
		
'FORM Delete van artikel---------------------------------------------------
-------

			%>
			<form action="del.asp" method="post" name="delete" 
id="delete">
				  <input type="hidden" name="artid" 
value="<%=rsSoort("instrID")%>">
	   			  <input type="Submit" name="del" 
value="delete">
			  </form></td>
			<%
			rsSoort.movenext
		loop
	response.write ("</table><br>")
Message #3 by "Ken Schaefer" <ken@a...> on Wed, 10 Apr 2002 16:44:52 +1000
This is a client-side javascript problem.

http://p2p.wrox.com/javascript has javascript lists you can subscribe to

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Vandael Tim" <vandael_tim@h...>
Subject: [access_asp] Confirmation box before delete record???


: i am busy with ASP nog for about 3 weeks,
: my admin page looks good, but there is a problem.
: When i want to delete a record, i want him to ask me a confirmation
: of what i am doing.
: So that i can not by accident, delete a record.
:
: I have tried with some java-scripts, but there was still the same problem,
: when i pressed NO on the confirmation box, he still deleted the record.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  Return to Index