|
 |
asp_web_howto thread: RE: download a folder or complete htm file
Message #1 by "Jennifer O'Leary (WS2)" <JenniferO@W...> on Wed, 8 May 2002 11:26:01 +0100
|
|
Hi Ron,
forgive me for my ignorance but I'm not sure how to set the permissions
for IUSR_machinename - and I am therefore having problems with copying
files - would you know anything about this?. Also I assume that to copy
files from server to client a URL locating the server file will do?
Thanks for your help on this!
Jen.
Subject: RE: download a folder or complete htm file
From: "Drew, Ron" <RDrew@B...>
Date: Mon, 22 Apr 2002 10:55:19 -0400
X-Message-Number: 17
This is a multi-part message in MIME format.
------_=3D_NextPart_001_01C1EA0D.B89BC08F
Content-Type: text/plain;
charset=3D"us-ascii"
Content-Transfer-Encoding: quoted-printable
http://www.4guysfromrolla.com/webtech/faq/FileSystemObject/faq4.shtml
=3D20
Take a look at the use of FSO
-----Original Message-----
From: Jennifer O'Leary (WS2) [mailto:JenniferO@W...]=3D20
Sent: Monday, April 22, 2002 10:42 AM
To: ASP Web HowTo
Subject: [asp_web_howto] download a folder or complete htm file
Hello,
I want to enable my user to download a folder or complete htm file
(including images folder & associated files) without using zipped files.
Is there some code apart from <a href=3D3D"myfile.doc">Download</a> that
I
can use?
Thanks in advance,
Jen
--- Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3D3Dnosim/theprogra
mm=3D
e
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3D3Dnosim/theprogra
mm=3D
e
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3D3Dnosim/theprogra
mm=3D
e
r-20 ---=3D20
Change your mail options at http://p2p.wrox.com/manager.asp or=3D20
=3D20
----------------------------------------------------------------------
Subject: Re: downloading
From: nusrat sarwar <nusratsarwar@y...>
Date: Mon, 22 Apr 2002 08:48:39 -0700 (PDT)
X-Message-Number: 18
hi Greg
many thanx
take care
regards
nusrat
--- Greg Griffiths <greg.griffiths@g...>
wrote:
> just link to it <a href=3D"myWord.doc">Download
> myWord.doc</a>
>
>
> At 12:38 21/04/02 -0700, you wrote:
> >hi
> >I want to give download option for a word document
> >can anyone help me with the code?
> >thanx
> >regards
> >nusrat
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Yahoo! Games - play chess, backgammon, pool and
> more
> >http://games.yahoo.com/
> >
> >
> >---
> >
> >Improve your web design skills with these new books
> from Glasshaus.
> >
> >Usable Web Menus
>
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogram
me
> >r-20
> >Constructing Accessible Web Sites
>
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogram
me
> >r-20
> >Practical JavaScript for the Usable Web
>
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogram
me
> >r-20
>
>
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
----------------------------------------------------------------------
Subject: Re: image gallery(urgent)
From: nusrat sarwar <nusratsarwar@y...>
Date: Mon, 22 Apr 2002 08:49:02 -0700 (PDT)
X-Message-Number: 19
many many thanks hotmail
I'll try it out
take care
regards
nusrat
--- Hotmail <tormented1_au@h...> wrote:
> <% Do While (NOT oRs.EOF) %>
> <tr>
> <td><%=3D(oRs.Fields.Item("Image").Value)%></td>
> <% oRs.MoveNext()
> If (oRs.EOF) Then
> Exit Do
> End If
> %>
> <td><%=3D(oRs.Fields.Item("Image").Value)%></td>
> </tr>
> <%
> oRs.MoveNext()
> Loop
> %>
> ----- Original Message -----
> From: "nusrat sarwar" <nusratsarwar@y...>
> To: "ASP Web HowTo" <asp_web_howto@p...>
> Sent: Monday, April 22, 2002 5:35 AM
> Subject: [asp_web_howto] image gallery(urgent)
>
>
> > Hi all
> > hope all of you are fine and well
> > here I am again to share a problem
> > I have to have photo gallery
> > the src of images coming from database
> > what I need is that pictures be shown in 2 columns
> and
> > when I get them they are shown in one row or in
> one
> > column
> > I need to have 2 columns and 10 rows
> > can any one help me?
> > many thanx in advance
> > take care
> > regards
> > nusrat
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Games - play chess, backgammon, pool and
> more
> > http://games.yahoo.com/
> >
> >
> > ---
> >
> > Improve your web design skills with these new
> books from Glasshaus.
> >
> > Usable Web Menus
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> > r-20
> > Constructing Accessible Web Sites
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> > r-20
> > Practical JavaScript for the Usable Web
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> > r-20
> >
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
----------------------------------------------------------------------
Subject: RE: downloading
From: nusrat sarwar <nusratsarwar@y...>
Date: Mon, 22 Apr 2002 11:37:40 -0700 (PDT)
X-Message-Number: 20
many thanx David
take care
regards
nusrat
--- "Debreceni, David" <david_debreceni@r...>
wrote:
> I am assuming the problem you are having is that
> when someone clicks the
> link it opens the doc in the browser which you don't
> want. If that is the
> case the way we do it here, and there are plenty of
> other ways, is to make a
> virtual directory in IIS for downloadable files.
> Put any of the files you
> want to download in there. Open the properties of
> the virtual directory and
> go to HTTP headers. Add a custom header custom
> header name:
> Content-Disposition Custom Header value: Attachment
> This should force
> anything in this directory to be downloaded when
> someone clicks the link.
> Hope that helps.
>
> David Debreceni
> Senior Visual Basic/ASP Developer
> xxx-xxx-xxxx x 1086
>
>
> -----Original Message-----
> From: nusrat sarwar [mailto:nusratsarwar@y...]
> Sent: Sunday, April 21, 2002 3:38 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] downloading
>
>
> hi
> I want to give download option for a word document
> can anyone help me with the code?
> thanx
> regards
> nusrat
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
>
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
>
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
----------------------------------------------------------------------
Subject: Re: Generating Unique Random Activation Code
From: "Tony DiNucci" <tony@m...>
Date: Mon, 22 Apr 2002 19:50:43
X-Message-Number: 21
hi there,
as this function is producing either numbers between 0-9 and uppercase
letters A-Z this need to be done to stop unwanted characters slipping
through.
' this creates either a 1 or 0
whatsNext =3D int((1 - 0 + 1) * rnd + 0)
upper =3D 90 ' =3D ASCII Z
lower =3D 65 ' =3D ASCII A
upper =3D 57 ' =3D ASCII 9
lower =3D 48 ' =3D ASCII 0
strNewCode =3D strNewCode & Chr(Int((upper - lower + 1) * rnd + lower))
(upper - lower + 1) will depend on if a 0 or 1 was generated at the
start.
if 0 was generated then you have:
(90 - 65 +1) =3D 26
as you know 26 isn't an uppercase letter, or even a number. we then
multiply it by a random fractional number, which actually lowers the
number even further and add the lower characters value to it.
for eg:
(90 - 65 +1) * 0.3 + lower =3D 72.8
since int and chr will take it as 73 this will produce "I"
the same goes for the numbers........doing it this you wont get any
ASCII
codes outside the upper and lower ranges.
hope that clears it up for you.
>
Hi Tony,
You mind tell me what is the logic/idea behind
Int((upper - lower + 1) * rnd + lower)
or for the whole function
thanks
William
"Tony
DiNucci"
<tony@m... To: "ASP Web HowTo"
<asp_web_howto@p...>
dia.co.uk>
cc:
Subject: [asp_web_howto]
Re: Generating Unique Random Activation Code
04/21/02 10:17
PM
Please respond
to
"ASP Web
HowTo"
the following function cannot guarantee a unique code on its
own.........but you can compair it to existing fields in your db and
that
would work.
to call it just do something like the following:
strActivateCode =3D makeCode(6) ' where 6 is the number of characters
********************************************************************
' builds a random code that will later be e-mailed to the new user
function makeCode(byVal maxLen)
dim strNewCode
dim whatsNext, upper, lower, intCounter
randomize
for intCounter =3D 1 to maxLen
whatsNext =3D int((1 - 0 + 1) * rnd + 0)
if whatsNext =3D 0 then
'character
upper =3D 90
lower =3D 65
else
upper =3D 57
lower =3D 48
end if
strNewCode =3D strNewCode & Chr(Int((upper - lower + 1) * rnd +
lower))
next
makeCode =3D strNewCode
end function
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
----------------------------------------------------------------------
Subject: Best place to buy a SSL site certificate ?
From: "tom carr" <tomcarr1@y...>
Date: Mon, 22 Apr 2002 20:20:16
X-Message-Number: 22
Where is the best place to buy a site certificate ? I can get a 128-bit
site certificate from Verisign for $895, or from a company called Thawte
for $125. The Thawte web site is confusing and doesn't work some of the
time, so maybe you get what you pay for. Who else sells these, and who
would you recommend ?
----------------------------------------------------------------------
Subject: Re: Generating Unique Random Activation Code
From: william.sze@s...
Date: Mon, 22 Apr 2002 15:12:39 -0400
X-Message-Number: 23
Great. Thanks for your detail reply.
William
"Tony DiNucci"
<tony@m... To: "ASP Web HowTo"
<asp_web_howto@p...>
dia.co.uk> cc:
Subject: [asp_web_howto]
Re: Generating Unique Random Activation Code
04/22/02 03:50 PM
Please respond to
"ASP Web HowTo"
hi there,
as this function is producing either numbers between 0-9 and uppercase
letters A-Z this need to be done to stop unwanted characters slipping
through.
' this creates either a 1 or 0
whatsNext =3D int((1 - 0 + 1) * rnd + 0)
upper =3D 90 ' =3D ASCII Z
lower =3D 65 ' =3D ASCII A
upper =3D 57 ' =3D ASCII 9
lower =3D 48 ' =3D ASCII 0
strNewCode =3D strNewCode & Chr(Int((upper - lower + 1) * rnd + lower))
(upper - lower + 1) will depend on if a 0 or 1 was generated at the
start.
if 0 was generated then you have:
(90 - 65 +1) =3D 26
as you know 26 isn't an uppercase letter, or even a number. we then
multiply it by a random fractional number, which actually lowers the
number even further and add the lower characters value to it.
for eg:
(90 - 65 +1) * 0.3 + lower =3D 72.8
since int and chr will take it as 73 this will produce "I"
the same goes for the numbers........doing it this you wont get any
ASCII
codes outside the upper and lower ranges.
hope that clears it up for you.
>
Hi Tony,
You mind tell me what is the logic/idea behind
Int((upper - lower + 1) * rnd + lower)
or for the whole function
thanks
William
"Tony
DiNucci"
<tony@m... To: "ASP Web HowTo"
<asp_web_howto@p...>
dia.co.uk>
cc:
Subject: [asp_web_howto]
Re: Generating Unique Random Activation Code
04/21/02 10:17
PM
Please respond
to
"ASP Web
HowTo"
the following function cannot guarantee a unique code on its
own.........but you can compair it to existing fields in your db and
that
would work.
to call it just do something like the following:
strActivateCode =3D makeCode(6) ' where 6 is the number of characters
********************************************************************
' builds a random code that will later be e-mailed to the new user
function makeCode(byVal maxLen)
dim strNewCode
dim whatsNext, upper, lower, intCounter
randomize
for intCounter =3D 1 to maxLen
whatsNext =3D int((1 - 0 + 1) * rnd + 0)
if whatsNext =3D 0 then
'character
upper =3D 90
lower =3D 65
else
upper =3D 57
lower =3D 48
end if
strNewCode =3D strNewCode & Chr(Int((upper - lower + 1) * rnd +
lower))
next
makeCode =3D strNewCode
end function
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
END OF DIGEST
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
Message #2 by "Drew, Ron" <RDrew@B...> on Wed, 8 May 2002 08:54:56 -0400
|
|
You do not need to worry about permissions on the server if you are
doing a readonly and downloading to the client. Just use the copyfile
FSO. Do a mappath to get the file location then follow the yellow brick
road. I have never downloaded a folder, do not believe this is
possible. I think you need to do one file at a time. So first FSO to
display possible files, let user click on which one they want, then
execute the FSO to copyfile. Below are 2 examples. First displays a
folder with PDF files.Second creates a folder (need permissions on this
one)
...............................................
Dim fso
Set fso =3D Server.CreateObject("Scripting.FileSystemObject")
' "PDF" Folder
Dim folder
Set folder =3D fso.GetFolder(Server.MapPath("\PDF"))
' or the physical path
'Set folder =3D fso.GetFolder("C:\Inetpub\wwwroot\PDF")
If folder.Size > 0 Then %>
<select NAME=3D"pdf_name" SIZE=3D"1">
<option VALUE=3D"0">Choose a File</option>
<% For Each file In folder.Files %>
<option VALUE=3D"<%=3Dfile.Name%>"><% Response.write
file.Name & " (" & file.Size & ")"%></option>
<%Next
Else
Response.Write "No pdf available"
End If
Set folder =3D Nothing
Set fso =3D nothing
%>
</select>
......................or......................
Dim FSO,F
Set FSO=3DServer.CreateObject("Scripting.FileSystemObject")
If FSO.FolderExists(Server.Mappath("NameofFolder")) then
Response.Write "Folder Exist"
Else
Set F =3D Fso.CreateFolder(Server.Mappath("NameofFolder"))
Response.Write "Folder was created"
End If
-----Original Message-----
From: Jennifer O'Leary (WS2) [mailto:JenniferO@W...]
Sent: Wednesday, May 08, 2002 6:26 AM
To: ASP Web HowTo
Subject: [asp_web_howto] RE: download a folder or complete htm file
Hi Ron,
forgive me for my ignorance but I'm not sure how to set the permissions
for IUSR_machinename - and I am therefore having problems with copying
files - would you know anything about this?. Also I assume that to copy
files from server to client a URL locating the server file will do?
Thanks for your help on this! Jen.
Subject: RE: download a folder or complete htm file
From: "Drew, Ron" <RDrew@B...>
Date: Mon, 22 Apr 2002 10:55:19 -0400
X-Message-Number: 17
This is a multi-part message in MIME format.
------_=3D_NextPart_001_01C1EA0D.B89BC08F
Content-Type: text/plain;
charset=3D"us-ascii"
Content-Transfer-Encoding: quoted-printable
http://www.4guysfromrolla.com/webtech/faq/FileSystemObject/faq4.shtml
=3D20
Take a look at the use of FSO
-----Original Message-----
From: Jennifer O'Leary (WS2) [mailto:JenniferO@W...]=3D20
Sent: Monday, April 22, 2002 10:42 AM
To: ASP Web HowTo
Subject: [asp_web_howto] download a folder or complete htm file
Hello,
I want to enable my user to download a folder or complete htm file
(including images folder & associated files) without using zipped files.
Is there some code apart from <a href=3D3D"myfile.doc">Download</a> that
I
can use? Thanks in advance, Jen
--- Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3D3Dnosim/theprogra
m
m=3D
e
r-20 Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3D3Dnosim/theprogra
m
m=3D
e
r-20 Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3D3Dnosim/theprogra
m
m=3D
e
r-20 ---=3D20
Change your mail options at http://p2p.wrox.com/manager.asp or=3D20 to
unsubscribe send a blank email to =3D20
----------------------------------------------------------------------
Subject: Re: downloading
From: nusrat sarwar <nusratsarwar@y...>
Date: Mon, 22 Apr 2002 08:48:39 -0700 (PDT)
X-Message-Number: 18
hi Greg
many thanx
take care
regards
nusrat
--- Greg Griffiths <greg.griffiths@g...>
wrote:
> just link to it <a href=3D"myWord.doc">Download
> myWord.doc</a>
>
>
> At 12:38 21/04/02 -0700, you wrote:
> >hi
> >I want to give download option for a word document
> >can anyone help me with the code?
> >thanx
> >regards
> >nusrat
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Yahoo! Games - play chess, backgammon, pool and
> more
> >http://games.yahoo.com/
> >
> >
> >---
> >
> >Improve your web design skills with these new books
> from Glasshaus.
> >
> >Usable Web Menus
>
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogram
m
>e
> >r-20
> >Constructing Accessible Web Sites
>
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogram
m
>e
> >r-20
> >Practical JavaScript for the Usable Web
>
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogram
m
>e
> >r-20
>
>
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
----------------------------------------------------------------------
Subject: Re: image gallery(urgent)
From: nusrat sarwar <nusratsarwar@y...>
Date: Mon, 22 Apr 2002 08:49:02 -0700 (PDT)
X-Message-Number: 19
many many thanks hotmail
I'll try it out
take care
regards
nusrat
--- Hotmail <tormented1_au@h...> wrote:
> <% Do While (NOT oRs.EOF) %>
> <tr>
> <td><%=3D(oRs.Fields.Item("Image").Value)%></td>
> <% oRs.MoveNext()
> If (oRs.EOF) Then
> Exit Do
> End If
> %>
> <td><%=3D(oRs.Fields.Item("Image").Value)%></td>
> </tr>
> <%
> oRs.MoveNext()
> Loop
> %>
> ----- Original Message -----
> From: "nusrat sarwar" <nusratsarwar@y...>
> To: "ASP Web HowTo" <asp_web_howto@p...>
> Sent: Monday, April 22, 2002 5:35 AM
> Subject: [asp_web_howto] image gallery(urgent)
>
>
> > Hi all
> > hope all of you are fine and well
> > here I am again to share a problem
> > I have to have photo gallery
> > the src of images coming from database
> > what I need is that pictures be shown in 2 columns
> and
> > when I get them they are shown in one row or in
> one
> > column
> > I need to have 2 columns and 10 rows
> > can any one help me?
> > many thanx in advance
> > take care
> > regards
> > nusrat
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Games - play chess, backgammon, pool and
> more
> > http://games.yahoo.com/
> >
> >
> > ---
> >
> > Improve your web design skills with these new
> books from Glasshaus.
> >
> > Usable Web Menus
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> > r-20
> > Constructing Accessible Web Sites
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> > r-20
> > Practical JavaScript for the Usable Web
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> > r-20
> >
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
----------------------------------------------------------------------
Subject: RE: downloading
From: nusrat sarwar <nusratsarwar@y...>
Date: Mon, 22 Apr 2002 11:37:40 -0700 (PDT)
X-Message-Number: 20
many thanx David
take care
regards
nusrat
--- "Debreceni, David" <david_debreceni@r...>
wrote:
> I am assuming the problem you are having is that
> when someone clicks the
> link it opens the doc in the browser which you don't
> want. If that is the
> case the way we do it here, and there are plenty of
> other ways, is to make a
> virtual directory in IIS for downloadable files.
> Put any of the files you
> want to download in there. Open the properties of
> the virtual directory and
> go to HTTP headers. Add a custom header custom
> header name:
> Content-Disposition Custom Header value: Attachment
> This should force
> anything in this directory to be downloaded when
> someone clicks the link.
> Hope that helps.
>
> David Debreceni
> Senior Visual Basic/ASP Developer
> xxx-xxx-xxxx x 1086
>
>
> -----Original Message-----
> From: nusrat sarwar [mailto:nusratsarwar@y...]
> Sent: Sunday, April 21, 2002 3:38 PM
> To: ASP Web HowTo
> Subject: [asp_web_howto] downloading
>
>
> hi
> I want to give download option for a word document
> can anyone help me with the code?
> thanx
> regards
> nusrat
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
>
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
>
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
----------------------------------------------------------------------
Subject: Re: Generating Unique Random Activation Code
From: "Tony DiNucci" <tony@m...>
Date: Mon, 22 Apr 2002 19:50:43
X-Message-Number: 21
hi there,
as this function is producing either numbers between 0-9 and uppercase
letters A-Z this need to be done to stop unwanted characters slipping
through.
' this creates either a 1 or 0
whatsNext =3D int((1 - 0 + 1) * rnd + 0)
upper =3D 90 ' =3D ASCII Z
lower =3D 65 ' =3D ASCII A
upper =3D 57 ' =3D ASCII 9
lower =3D 48 ' =3D ASCII 0
strNewCode =3D strNewCode & Chr(Int((upper - lower + 1) * rnd + lower))
(upper - lower + 1) will depend on if a 0 or 1 was generated at the
start.
if 0 was generated then you have:
(90 - 65 +1) =3D 26
as you know 26 isn't an uppercase letter, or even a number. we then
multiply it by a random fractional number, which actually lowers the
number even further and add the lower characters value to it.
for eg:
(90 - 65 +1) * 0.3 + lower =3D 72.8
since int and chr will take it as 73 this will produce "I"
the same goes for the numbers........doing it this you wont get any
ASCII
codes outside the upper and lower ranges.
hope that clears it up for you.
>
Hi Tony,
You mind tell me what is the logic/idea behind
Int((upper - lower + 1) * rnd + lower)
or for the whole function
thanks
William
"Tony
DiNucci"
<tony@m... To: "ASP Web HowTo"
<asp_web_howto@p...>
dia.co.uk>
cc:
Subject: [asp_web_howto]
Re: Generating Unique Random Activation Code
04/21/02 10:17
PM
Please respond
to
"ASP Web
HowTo"
the following function cannot guarantee a unique code on its
own.........but you can compair it to existing fields in your db and
that
would work.
to call it just do something like the following:
strActivateCode =3D makeCode(6) ' where 6 is the number of characters
********************************************************************
' builds a random code that will later be e-mailed to the new user
function makeCode(byVal maxLen)
dim strNewCode
dim whatsNext, upper, lower, intCounter
randomize
for intCounter =3D 1 to maxLen
whatsNext =3D int((1 - 0 + 1) * rnd + 0)
if whatsNext =3D 0 then
'character
upper =3D 90
lower =3D 65
else
upper =3D 57
lower =3D 48
end if
strNewCode =3D strNewCode & Chr(Int((upper - lower + 1) * rnd +
lower))
next
makeCode =3D strNewCode
end function
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
----------------------------------------------------------------------
Subject: Best place to buy a SSL site certificate ?
From: "tom carr" <tomcarr1@y...>
Date: Mon, 22 Apr 2002 20:20:16
X-Message-Number: 22
Where is the best place to buy a site certificate ? I can get a 128-bit
site certificate from Verisign for $895, or from a company called Thawte
for $125. The Thawte web site is confusing and doesn't work some of the
time, so maybe you get what you pay for. Who else sells these, and who
would you recommend ?
----------------------------------------------------------------------
Subject: Re: Generating Unique Random Activation Code
From: william.sze@s...
Date: Mon, 22 Apr 2002 15:12:39 -0400
X-Message-Number: 23
Great. Thanks for your detail reply.
William
"Tony DiNucci"
<tony@m... To: "ASP Web HowTo"
<asp_web_howto@p...>
dia.co.uk> cc:
Subject: [asp_web_howto]
Re: Generating Unique Random Activation Code
04/22/02 03:50 PM
Please respond to
"ASP Web HowTo"
hi there,
as this function is producing either numbers between 0-9 and uppercase
letters A-Z this need to be done to stop unwanted characters slipping
through.
' this creates either a 1 or 0
whatsNext =3D int((1 - 0 + 1) * rnd + 0)
upper =3D 90 ' =3D ASCII Z
lower =3D 65 ' =3D ASCII A
upper =3D 57 ' =3D ASCII 9
lower =3D 48 ' =3D ASCII 0
strNewCode =3D strNewCode & Chr(Int((upper - lower + 1) * rnd + lower))
(upper - lower + 1) will depend on if a 0 or 1 was generated at the
start.
if 0 was generated then you have:
(90 - 65 +1) =3D 26
as you know 26 isn't an uppercase letter, or even a number. we then
multiply it by a random fractional number, which actually lowers the
number even further and add the lower characters value to it.
for eg:
(90 - 65 +1) * 0.3 + lower =3D 72.8
since int and chr will take it as 73 this will produce "I"
the same goes for the numbers........doing it this you wont get any
ASCII
codes outside the upper and lower ranges.
hope that clears it up for you.
>
Hi Tony,
You mind tell me what is the logic/idea behind
Int((upper - lower + 1) * rnd + lower)
or for the whole function
thanks
William
"Tony
DiNucci"
<tony@m... To: "ASP Web HowTo"
<asp_web_howto@p...>
dia.co.uk>
cc:
Subject: [asp_web_howto]
Re: Generating Unique Random Activation Code
04/21/02 10:17
PM
Please respond
to
"ASP Web
HowTo"
the following function cannot guarantee a unique code on its
own.........but you can compair it to existing fields in your db and
that
would work.
to call it just do something like the following:
strActivateCode =3D makeCode(6) ' where 6 is the number of characters
********************************************************************
' builds a random code that will later be e-mailed to the new user
function makeCode(byVal maxLen)
dim strNewCode
dim whatsNext, upper, lower, intCounter
randomize
for intCounter =3D 1 to maxLen
whatsNext =3D int((1 - 0 + 1) * rnd + 0)
if whatsNext =3D 0 then
'character
upper =3D 90
lower =3D 65
else
upper =3D 57
lower =3D 48
end if
strNewCode =3D strNewCode & Chr(Int((upper - lower + 1) * rnd +
lower))
next
makeCode =3D strNewCode
end function
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
END OF DIGEST
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
|
|
 |