Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete button is not working in application

Status
Not open for further replies.

mtrasp

Programmer
Jun 15, 2009
35
US
hi
i am new to asp application . i need to fix one bug .it is really confusing me . Delete button is not working on application(which one is customers are using) . i have tried in my local development DEV server it is working fine.but in main application (customers are using) delete button is not working .what may be the problem?

if i click on Delete button javascript function is calling i think it is working fine Devserver. please give me some idea
 
hi Thanks for your reply here is the code

KitSchedulelist.asp

<%@ Language="VBScript" %>
<% Option Explicit %>
<% Response.Buffer = True%>
<% Response.Expires = -1 %>
<%'=========================================================
'PURPOSE:
'Schedule Date list.
'========================================================================
'=== Page interfaces
'========================================================================
'/admintool/kittooladmin/kitschedule.asp
'/admintool/kittooladmin/default.asp
'========================================================================
'=== Declarations
'========================================================================
Dim objKitTool, objKit

Dim adoCmd
Dim rs
Dim intKitNumber
'========================================================================
'=== Initialization
'========================================================================

intKitNumber = Request("kitnumber")
'========================================================================
'=== Main Code
'========================================================================
Set objKitTool = Server.CreateObject("KitTool.Application")
objKitTool.ConnectionString = Application("DBConnect")

Set objKit = objKitTool.Kit

Select Case Request.QueryString("action")
Case "adddate": 'add new date
objKit.InsertScheduleDate intKitNumber, Request.Form("scheduletypeid"), Request.Form("scheduledate"), sIDSID
Case "deletedate": 'delete date
objKit.DeleteScheduleDate cint(Request.QueryString("scheduleid"))
End Select

WriteDocTypeHeader 'from /common/pagebuilder.asp (included above)
%>
<html>
<html>
<head><title>Master-Child Kit: Master Kit</title></head>
<% WriteStandardStyles %>

<body class="body">
<table class="table" width=100%>
<tr>
<th class="th"></th>
<th class="th">Schedule Item</th>
<th class="th">Target Date</th>
<th class="th">Status</th>
</tr>
<%
Set rs = objKit.GetSelectedScheduleDates(intKitNumber)
Do While Not rs.EOF
%>
<tr>
<td class="td"><input class="input" type=button value="del" onClick="javascript:document.location='/admintool/kittooladmin/kitschedulelist.asp?action=deletedate&kitnumber=<%=intKitNumber%>&scheduleid=<%=rs.Fields("ScheduleID").Value%>';"></td>
<td class="td"><%=rs.Fields("Type").Value%></td>
<td class="td"><%=rs.Fields("TargetDate").Value%></td>
<td class="td"><%=rs.Fields("ScheduleStatusName").Value%></td>
</tr>
<%
rs.MoveNext
Loop
Set rs = Nothing

Set objKit = Nothing
Set objKitTool = Nothing
%>
</table>
<!-- #include virtual="/include/logout.asp" -->
</body>
</html>
 
so, what exactly happens when you click the delete button - anything? Do you get an error message of any kind?

Maybe try this - load the page up and do a view source and paste that code, will be easier for someone to debug once we see it that way.

--------
GOOGLE is a great resource to find answers to questions like "how do i..."

If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top