Print Page | Close Window

asp upload problem

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=1990
Printed Date: 01 April 2026 at 1:12am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: asp upload problem
Posted By: venki
Subject: asp upload problem
Date Posted: 22 April 2003 at 9:20am

I had used asp script for uploading files to server and now it vont work on my WinXP, before it worked werry good, and now it only works on server, but not on my comp. I dont get any error, it just dont open the page when I click Upload Files

here you can download the script:

ask me by PM for links if you wont, I got that worked out.




Replies:
Posted By: venki
Date Posted: 22 April 2003 at 1:55pm

And now a simple asp question, how to count some letter in varijable?? ex:

Dim text
text = "ja4k;j98h.u2sk2;h844di;odbg"

How to count how mouch is ";" times reperated?? in this case it woud be 3



Posted By: Mart
Date Posted: 23 April 2003 at 6:57am

For your first question, you may need to change your permissions theres an article on Web Wiz and you also have to turn off norton antivirus script blocking.



Posted By: theSCIENTIST
Date Posted: 09 December 2003 at 8:18am

To give input to your first question, let me ask you two things:

  1. Are you using FSO to write files?
  2. Do you have Norton AntiVirus installed with script blocking enabled?

If so, there's your answer, it happened to me before.



Posted By: dpyers
Date Posted: 09 December 2003 at 8:28pm

For your 2nd Question...

dim iCount
dim iStringLen
dim iInString
dim sString

iCount = 0
sString = "ja4k;j98h.u2sk2;h844di;odbg"

For iStringLen = 1 to len(sString)
'the Len() function calculates the length of the string.

InString = Instr(iStringLen , sString,";")
'the Instr() function finds the first occurance of ; starting at iStringLen, but counts from the beginnig of the string.

sString= right(sString,len(sString)-iInString)
'the characters that have already been checked must be discarded

If iInString <> 0 Then
icount = icount + 1
End If

Next
response.write icount



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: fernan82
Date Posted: 09 December 2003 at 8:50pm
And here's the simple way for your 2nd question:

Dim strString, iCount

strString = "ja4k;j98h.u2sk2;h844di;odbg"

iCount = UBound(Split(strString, ";"))

Response.Write(iCount)


-------------
FeRnAN
http://www.danasoft.com/">



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net