ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 3rd, 2003, 04:51 AM
marCello70's Avatar
marCello70 marCello70 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 43 marCello70 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 24 m 40 sec
Reputation Power: 6
Code looks fine, but get a blank page

These code is suppose to delete files from a database and print how many files where deleted.

PHP Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<
html>
<
head>
<
title>Untitled Document</title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</
head>

<
body>

<%
'
DELETE FILE FROM SERVER
dim myfile, fs
myfile = request.form("myfile")

Set fs=Server.CreateObject("Scripting.FileSystemObject") 

if fs.FileExists(myfile) then
  fs.DeleteFile(myfile), true
end if

set fs=nothing

docID = request.form("docID")
myDSN = "DSN=filemanager;uid=;pwd="
mySQL = "DELETE FROM docs WHERE docID=" & docID

Set Conn = Server.CreateObject("ADODB.Connection")
conn.open myDSN

Conn.Execute mySQL,howmany

response.write "The statement " & mySQL & "<b> deleted " & howmany & " records</b><br>"

Conn.Close
set conn=nothing

%>

<h1>OK</h1>
<% = myfile %>
</body>
</html> 


I don't get any error message, but get a blank page and if I move out of the browser window my mouse pointer becomes a clock indicating something is being processed.


_________________
marCello70

Reply With Quote
  #2  
Old September 3rd, 2003, 07:52 AM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Try this:
Tools-->Internet Options-->Advance(tab)-->Uncheck Show Friendly HTTP error messages

Also, where do you declare the variable howmany
and why are you passing it here:

Conn.Execute mySQL,howmany ???

You'll also want to DEBUG your application in order to find out **WHY** it hangs like that...

Perhaps making some Response.Write's at critical area in your code and debug step by step no?

Hope this helps!
Sincerely

Vlince

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Code looks fine, but get a blank page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT