Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - asp upload problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

asp upload problem

 Post Reply Post Reply
Author
venki View Drop Down
Groupie
Groupie


Joined: 20 April 2003
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote venki Quote  Post ReplyReply Direct Link To This Post Topic: asp upload problem
    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.



Edited by venki
Back to Top
venki View Drop Down
Groupie
Groupie


Joined: 20 April 2003
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote venki Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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)


Edited by fernan82
FeRnAN
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.