CDate/SA-Fileup
why this is giving me a 'type mismatch' error on the last line with the (CDate) when i use it with SA-Fileup and everything works fine when I am not using SA-Fileup. Checked out the SA-Fileup docs and couldn't find anything.
here it is.Code:
Set oFileUp = Server.CreateObject("SoftArtisans.FileUp")
eventStartDate = oFileUp.Form("sYear") & "-" & oFileUp.Form("sMonth") & "-" & oFileUp.Form("sDay") & " " & oFileUp.Form("sTimeHour") & ":" & oFileUp.Form("sTimeMinutes") & ":" & oFileUp.Form("sTimeSeconds")
View Replies
Can anyone tell me why this is giving me a 'type mismatch' error on the last line with the (CDate) when i use it with SA-Fileup and everything works fine when I am not using SA-Fileup. Checked out the SA-Fileup docs and couldn't find anything.
Code:
Set oFileUp = Server.CreateObject("SoftArtisans.FileUp")
eventStartDate = oFileUp.Form("sYear") & "-" & oFileUp.Form("sMonth") & "-" & oFileUp.Form("sDay") & " " & oFileUp.Form("sTimeHour") & ":" & oFileUp.Form("sTimeMinutes") & ":" & oFileUp.Form("sTimeSeconds")
eventEndDate = oFileUp.Form("eYear") & "-" & oFileUp.Form("eMonth") & "-" & oFileUp.Form("eDay") & " " & oFileUp.Form("eTimeHour") & ":" & oFileUp.Form("eTimeMinutes") & ":" & oFileUp.Form("eTimeSeconds")
ESDT = CDate(eventStartDate)
View Replies
View Related
Does anyone know how to combined two select fields and convert it into date using CDate()?
I would like to make up 2 selects option in a form
select 1 is for month and select 2 is for year. when user select the desired month and year, these 2 fields will be converted into date format using CDate() but unfortunately I am having problems as CDate only recognise string and single value...
I tried to combined the 2 values using
mydate = Request.Form("month") and Request.Form("year") but alway returned an error. How do you combined these 2 values so I can get single value to be inserted into the CDate() function?
View Replies
View Related
I have a form where the user enters some information, one field is a date. I have a date 04/18/1982 I'm using CDATE to convert from string to date format so it can be inserted into access.
It works fine if the field is not null. If the user leaves the field null i get page not able to display, is there any way to use CDate with a null value?
View Replies
View Related
We got an upload page that was working fine, but now isn't. There was no change to IIS 5.0, Windows 2000 server, the asp page or the 3.13 version of SA's fileup component.
The issue is files that are 7,904 bytes or smaller upload just fine. files that are 7,905 bytes or larger do not upload. Looking at the fileup components' .TotalBytes properties...the 7,904 byte file or smaller fileup can determine the size correctly. if the .totalbyte properties is response.write out for a file larger than 7,904.
Any idea what would cause the smaller files to work just fine and the larger files to fail in the upload process? Why would fileup not be able to determin the filesize of a file larger than 7,904 bytes?
View Replies
View Related
I was wondering if anyone has ever successfully used SA-FileUp's download feature. I am being forced to change from "ASPSmartUpload" as the server I am moving everything to is using SAFileUp version 3.2.
I ran through their documentation and found a section called "secure download", unfortunately, their examples do not work at all!
On Netscape 7, the file "pretends" to download (after changing the file extension), but only an empty file is created.
On IE 6, I simply get an Internal Server Error (when calling the
TransferFile method of my object). Code:
View Replies
View Related
I am trying to change an existing function that currently only displays records that
fall under a criteria of
NOT(now>cdate(OTDate & ' 2:00 AM')
If I wanted to change this function to display entries that are before
6:00 pm the day before the OTDate, how could I modify this part of my
code? should is be something like this...
NOT(now>cdate((OTDate -1) & ' 6:00 PM')
View Replies
View Related
I am trying to use SoftArtisans FileUp Professional to upload a directory. I
have found some sample code to help but you have to type in the directory
name when you run the page.
I want to use a form in the same way as for a file upload to browse and
select my directory for upload. Anyone know how to code this?
Also are there any good places other than the official SA site to go for
help with sample code?
View Replies
View Related