By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,874 Members | 1,028 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,874 IT Pros & Developers. It's quick & easy.

pointing hyperlink to a shortcut

P: n/a
aa
Thought this question might be out of this NG's scope, there are always knowledgable people who might hava an answer.

A hyperlink to a shortcut to a file returnes an empty screen, and the source code behind this empty screen is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Is this supposed to be like this?
How does a shortcut work?
Is it possible to use shortcuts in this way?
The reason fo me wanting this is I have a code which builds a link to a product's Technical Data Sheet basing on product's code.
However sometimes several products share a sigle TDS file, so the ides was to use shortcut, rather then having same info stored under different filenames

Jul 19 '05 #1
Share this Question
Share on Google+
27 Replies


P: n/a
aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
Thought this question might be out of this NG's scope, there are
always knowledgable people who might hava an answer.
This has nothing to do with ASP.

Please see an HTML NG.
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>A&nbsp;hyperlink to a shortcut to a file
returnes an empty screen, and the source code behind this empty screen
is</FONT></DIV>


Please do NOT send HTML code on usenet

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2

P: n/a
aa
Evertjan

If you have no answer, feel free not to answer.
If you do not like a question, feel free to ignore it.
This will save everybody's time including that of yours.

This is not an HTML question either. I posted it here as an act of
desperation, hoping someone recommends me a correct NG
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
Thought this question might be out of this NG's scope, there are
always knowledgable people who might hava an answer.


This has nothing to do with ASP.

Please see an HTML NG.
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>A&nbsp;hyperlink to a shortcut to a file
returnes an empty screen, and the source code behind this empty screen
is</FONT></DIV>


Please do NOT send HTML code on usenet

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 19 '05 #3

P: n/a
aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
> Thought this question might be out of this NG's scope, there are
> always knowledgable people who might hava an answer.
This has nothing to do with ASP.

Please see an HTML NG. If you have no answer, feel free not to answer.
If you do not like a question, feel free to ignore it.
This will save everybody's time including that of yours.

This is not an HTML question either. I posted it here as an act of
desperation, hoping someone recommends me a correct NG


[please do not toppost on usenet]

Dear aa,

No, but I suggested you ask in a HTML goup, that is an answer. You did
not ask: "Please point me to the right group" but ignored the netiquette
to ask for content anyway. The only way to keep NG on topic is to show
people the way to go.

Do not expect people not to respond so when you intentionally disregard
netiquette.
> <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>


Please do NOT send HTML code on usenet


This you corrected. thank you.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #4

P: n/a
aa
Are you a net-policeman?

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
> Thought this question might be out of this NG's scope, there are
> always knowledgable people who might hava an answer.

This has nothing to do with ASP.

Please see an HTML NG.
If you have no answer, feel free not to answer.
If you do not like a question, feel free to ignore it.
This will save everybody's time including that of yours.

This is not an HTML question either. I posted it here as an act of
desperation, hoping someone recommends me a correct NG


[please do not toppost on usenet]

Dear aa,

No, but I suggested you ask in a HTML goup, that is an answer. You did
not ask: "Please point me to the right group" but ignored the netiquette
to ask for content anyway. The only way to keep NG on topic is to show
people the way to go.

Do not expect people not to respond so when you intentionally disregard
netiquette.
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>

Please do NOT send HTML code on usenet


This you corrected. thank you.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 19 '05 #5

P: n/a
Why? Are you a net-criminal?

Bob Lehmann

"aa" <aa@virgin.net> wrote in message
news:#l*************@TK2MSFTNGP10.phx.gbl...
Are you a net-policeman?

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
> aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
> > Thought this question might be out of this NG's scope, there are
> > always knowledgable people who might hava an answer.
>
> This has nothing to do with ASP.
>
> Please see an HTML NG.

If you have no answer, feel free not to answer.
If you do not like a question, feel free to ignore it.
This will save everybody's time including that of yours.

This is not an HTML question either. I posted it here as an act of
desperation, hoping someone recommends me a correct NG


[please do not toppost on usenet]

Dear aa,

No, but I suggested you ask in a HTML goup, that is an answer. You did
not ask: "Please point me to the right group" but ignored the netiquette
to ask for content anyway. The only way to keep NG on topic is to show
people the way to go.

Do not expect people not to respond so when you intentionally disregard
netiquette.
> > <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
>
> Please do NOT send HTML code on usenet


This you corrected. thank you.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Jul 19 '05 #6

P: n/a
"aa" wrote in message news:OU*************@tk2msftngp13.phx.gbl...
Thought this question might be out of this NG's scope, there are always
knowledgable people who might hava an answer.

If it's not ASP related, then yes, it is out of scope.

A hyperlink to a shortcut to a file returnes an empty screen, and the source
code behind this empty screen is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

A hyperlink to a shortcut where? Server? Client?
A shortcut on the server will point to a physical path so the client cannot
use it.
A shortcut on the client cannot be pointed to since ASP runs on the server.
The code you see is default code provided by your browser to render the page
with nothing visual, as it has done. It returned all it could, which is
nothing useful.

Is this supposed to be like this?
Yes.

How does a shortcut work?
A shortcut is a .lnk file to a physical path and file.

Is it possible to use shortcuts in this way?
Not that I am aware of. This is not ASP related. You should post your
question in an Windows OS NG or some other relative NG, perhaps HTML
related.

The reason fo me wanting this is I have a code which builds a link to a
product's Technical Data Sheet basing on product's code.
However sometimes several products share a sigle TDS file, so the ides was
to use shortcut, rather then having same info stored under different
filenames

In ASP, if you have a reference that points to a path, you can store it in a
variable for short-term or cookie for mid-term or database/file for long
term. You can then retrieve it and use it as you wish. If you need it
within all pages, then <!-- #include file="myshortcuts.asp"--> on each page
will let you do that. Or you could assign it to a session variable, or a
cookie, etc.

Evertjan pointed you to an HTML NG, which you responded was a desire re:
your OP, as you slammed him for doing so. However, given the limitations of
your OP, there was not much else to respond with.

He also requested you not top post, which really doesn't make a flying Fred
to me, but it does make it easier for others to follow a thread if relative
text from a previous post is included and responded to as it would be in a
verbal conversation. He is quite helpful, extremely intelligent and
provides valuable information on numerous NGs. Shooting the cook is not a
good way to get fed. I understand and sympathize you are frustrated. We
all experience that from time to time but you need to reread your posts.

You made a request.
He responded pointing you to a different NG.
You slammed him for not having an answer and stated your original post, at a
minimum, was to get pointed to an appropriate NG.

My response to that is, "HELLO?!" (O:=

You also responded with he could have ignored your post. You're right but
be careful what you ask for. However, you could have ignored his response.
Jes' sayin'...

HTH... and if not, please provide more detail if you feel this is ASP
related and if not, please try posting to an appropriate NG.

One more thing...
Please set your NG reader to only post with plain text messages. We get
prompted when we reply if it's ok to post in HTML, which we do not want to
do. We then have to modify the response to plain text. This will probably
limit helpful responses more than top posting.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #7

P: n/a
"Roland Hall" wrote in message news:ug**************@TK2MSFTNGP12.phx.gbl...
: "aa" wrote in message news:OU*************@tk2msftngp13.phx.gbl...
: Thought this question might be out of this NG's scope, there are always
: knowledgable people who might hava an answer.
:
: If it's not ASP related, then yes, it is out of scope.
<!--SNiP-->

As I read my post, I knew which was my responses and which were your
responses but others may not. The reason I just realized is you posted in
HTML, and not plain text and my NG reader was not set to preclude each line
with :, as it does in plain text. That reason is my personal preference
because my NG reader is also my email client and I chose not to include that
symbol for email messages.

I have included my previous post with the appropriate markings.

"aa" wrote in message news:OU*************@tk2msftngp13.phx.gbl...
: Thought this question might be out of this NG's scope, there are always
: knowledgable people who might hava an answer.

If it's not ASP related, then yes, it is out of scope.

: A hyperlink to a shortcut to a file returnes an empty screen, and the
source
: code behind this empty screen is
: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
: <HTML><HEAD>
: <META http-equiv=Content-Type content="text/html;
: charset=windows-1252"></HEAD>
: <BODY></BODY></HTML>

A hyperlink to a shortcut where? Server? Client?
A shortcut on the server will point to a physical path so the client cannot
use it.
A shortcut on the client cannot be pointed to since ASP runs on the server.
The code you see is default code provided by your browser to render the page
with nothing visual, as it has done. It returned all it could, which is
nothing useful.

: Is this supposed to be like this?
Yes.

: How does a shortcut work?
A shortcut is a .lnk file to a physical path and file.

: Is it possible to use shortcuts in this way?
Not that I am aware of. This is not ASP related. You should post your
question in an Windows OS NG or some other relative NG, perhaps HTML
related.

: The reason fo me wanting this is I have a code which builds a link to a
: product's Technical Data Sheet basing on product's code.
: However sometimes several products share a sigle TDS file, so the ides was
: to use shortcut, rather then having same info stored under different
: filenames

In ASP, if you have a reference that points to a path, you can store it in a
variable for short-term or cookie for mid-term or database/file for long
term. You can then retrieve it and use it as you wish. If you need it
within all pages, then <!-- #include file="myshortcuts.asp"--> on each page
will let you do that. Or you could assign it to a session variable, or a
cookie, etc.

Evertjan pointed you to an HTML NG, which you responded was a desire re:
your OP, as you slammed him for doing so. However, given the limitations of
your OP, there was not much else to respond with.

He also requested you not top post, which really doesn't make a flying Fred
to me, but it does make it easier for others to follow a thread if relative
text from a previous post is included and responded to as it would be in a
verbal conversation. He is quite helpful, extremely intelligent and
provides valuable information on numerous NGs. Shooting the cook is not a
good way to get fed. I understand and sympathize you are frustrated. We
all experience that from time to time but you need to reread your posts.

You made a request.
He responded pointing you to a different NG.
You slammed him for not having an answer and stated your original post, at a
minimum, was to get pointed to an appropriate NG.

My response to that is, "HELLO?!" (O:=

You also responded with he could have ignored your post. You're right but
be careful what you ask for. However, you could have ignored his response.
Jes' sayin'...

HTH... and if not, please provide more detail if you feel this is ASP
related and if not, please try posting to an appropriate NG.

One more thing...
Please set your NG reader to only post with plain text messages. We get
prompted when we reply if it's ok to post in HTML, which we do not want to
do. We then have to modify the response to plain text. This will probably
limit helpful responses more than top posting.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #8

P: n/a
aa
I am not, that's why I am bemused what policemen and preachers are doing
here.
They think they make the NG tidier, but instead they bloat it with
meaningless self-righteous messages.
If a question does not belong in here a considerate person would tell where
it should belong. If he/her does not know, he/her ignore it to let it die
itself without moralizing.

"Bob Lehmann" <none> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...
Why? Are you a net-criminal?

Bob Lehmann

"aa" <aa@virgin.net> wrote in message
news:#l*************@TK2MSFTNGP10.phx.gbl...
Are you a net-policeman?

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
> "Evertjan." <ex**************@interxnl.net> wrote in message
> news:Xn********************@194.109.133.29...
>> aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
>> > Thought this question might be out of this NG's scope, there are
>> > always knowledgable people who might hava an answer.
>>
>> This has nothing to do with ASP.
>>
>> Please see an HTML NG.

> If you have no answer, feel free not to answer.
> If you do not like a question, feel free to ignore it.
> This will save everybody's time including that of yours.
>
> This is not an HTML question either. I posted it here as an act of
> desperation, hoping someone recommends me a correct NG

[please do not toppost on usenet]

Dear aa,

No, but I suggested you ask in a HTML goup, that is an answer. You did
not ask: "Please point me to the right group" but ignored the netiquette to ask for content anyway. The only way to keep NG on topic is to show
people the way to go.

Do not expect people not to respond so when you intentionally disregard netiquette.

>> > <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
>>
>> Please do NOT send HTML code on usenet

This you corrected. thank you.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)



Jul 19 '05 #9

P: n/a
ljb
What is "top post"? I'm sorry I'm not familiar with that term.

thanks
LJB
Jul 19 '05 #10

P: n/a
This is a "top post". I've placed my reply above the quote of your message.
Do a Google on the word netiquette to read why it is frowned upon.

ljb wrote:
What is "top post"? I'm sorry I'm not familiar with that term.
This is an "inline" or "interspersed" reply, so named becuase it appears
directly below the quoted text to which I am replying. It can help make a
conversation easier to follow, especially if I am replying to several points
within your post. Inline posting is preferred because it encourages the
person making the reply to trim the irrelevant pieces of text from the
quoted text.

thanks


This is also an "inline" or "interspersed" reply, but it is sometimes
mistakenly called a "bottom post", which should refer to a post which is the
opposite of a "top" post: the entire reply text appears below the entire
block of quoted text. This can be just as bad as top-posting since the
bottom-poster may neglect to trim the quote.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #11

P: n/a
He did let you know where it belonged.
Please see an HTML NG.
Bob Lehmann

"aa" <aa@virgin.net> wrote in message
news:uA*************@TK2MSFTNGP09.phx.gbl...
I am not, that's why I am bemused what policemen and preachers are doing
here.
They think they make the NG tidier, but instead they bloat it with
meaningless self-righteous messages.
If a question does not belong in here a considerate person would tell where it should belong. If he/her does not know, he/her ignore it to let it die
itself without moralizing.

"Bob Lehmann" <none> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...
Why? Are you a net-criminal?

Bob Lehmann

"aa" <aa@virgin.net> wrote in message
news:#l*************@TK2MSFTNGP10.phx.gbl...
Are you a net-policeman?

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
> aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general:
> > "Evertjan." <ex**************@interxnl.net> wrote in message
> > news:Xn********************@194.109.133.29...
> >> aa wrote on 31 mrt 2004 in
microsoft.public.inetserver.asp.general: > >> > Thought this question might be out of this NG's scope, there are > >> > always knowledgable people who might hava an answer.
> >>
> >> This has nothing to do with ASP.
> >>
> >> Please see an HTML NG.
>
> > If you have no answer, feel free not to answer.
> > If you do not like a question, feel free to ignore it.
> > This will save everybody's time including that of yours.
> >
> > This is not an HTML question either. I posted it here as an act of
> > desperation, hoping someone recommends me a correct NG
>
> [please do not toppost on usenet]
>
> Dear aa,
>
> No, but I suggested you ask in a HTML goup, that is an answer. You did > not ask: "Please point me to the right group" but ignored the

netiquette > to ask for content anyway. The only way to keep NG on topic is to show > people the way to go.
>
> Do not expect people not to respond so when you intentionally disregard > netiquette.
>
> >> > <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> >>
> >> Please do NOT send HTML code on usenet
>
> This you corrected. thank you.
>
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)



Jul 19 '05 #12

P: n/a
"Bob Barrows [MVP]" wrote in message
news:eD****************@TK2MSFTNGP12.phx.gbl...
: This is a "top post". I've placed my reply above the quote of your
message.
: Do a Google on the word netiquette to read why it is frowned upon.
:
: ljb wrote:
: > What is "top post"? I'm sorry I'm not familiar with that term.
:
: This is an "inline" or "interspersed" reply, so named becuase it appears
: directly below the quoted text to which I am replying. It can help make a
: conversation easier to follow, especially if I am replying to several
points
: within your post. Inline posting is preferred because it encourages the
: person making the reply to trim the irrelevant pieces of text from the
: quoted text.
:
: >
: > thanks
:
: This is also an "inline" or "interspersed" reply, but it is sometimes
: mistakenly called a "bottom post", which should refer to a post which is
the
: opposite of a "top" post: the entire reply text appears below the entire
: block of quoted text. This can be just as bad as top-posting since the
: bottom-poster may neglect to trim the quote.

Very well said, Bob.
Jul 19 '05 #13

P: n/a
Agreed! ;-p

"Roland Hall" <nobody@nowhere> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
"Bob Barrows [MVP]" wrote in message
news:eD****************@TK2MSFTNGP12.phx.gbl...
: This is a "top post". I've placed my reply above the quote of your
message.
: Do a Google on the word netiquette to read why it is frowned upon.
:
: ljb wrote:
: > What is "top post"? I'm sorry I'm not familiar with that term.
:
: This is an "inline" or "interspersed" reply, so named becuase it appears : directly below the quoted text to which I am replying. It can help make a : conversation easier to follow, especially if I am replying to several points
: within your post. Inline posting is preferred because it encourages the : person making the reply to trim the irrelevant pieces of text from the : quoted text.
:
: >
: > thanks
:
: This is also an "inline" or "interspersed" reply, but it is sometimes : mistakenly called a "bottom post", which should refer to a post which is the
: opposite of a "top" post: the entire reply text appears below the entire : block of quoted text. This can be just as bad as top-posting since the : bottom-poster may neglect to trim the quote.

Very well said, Bob.

Jul 19 '05 #14

P: n/a
ljb
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:eD****************@TK2MSFTNGP12.phx.gbl...
This is an "inline" or "interspersed" reply, so named becuase it appears
directly below the quoted text to which I am replying. It can help make a
conversation easier to follow, especially if I am replying to several points within your post. Inline posting is preferred because it encourages the
person making the reply to trim the irrelevant pieces of text from the
quoted text.


I once encountered a NG server that wouldn't post replies to a message
unless the new content was greater than the original. That made you scratch
your head and think awhile!

thanks
LJB
Jul 19 '05 #15

P: n/a
aa
No, he did not because it does not belong to HTML

"Bob Lehmann" <none> wrote in message
news:uB*************@TK2MSFTNGP11.phx.gbl...
He did let you know where it belonged.
Please see an HTML NG.
Bob Lehmann

"aa" <aa@virgin.net> wrote in message
news:uA*************@TK2MSFTNGP09.phx.gbl...
I am not, that's why I am bemused what policemen and preachers are doing
here.
They think they make the NG tidier, but instead they bloat it with
meaningless self-righteous messages.
If a question does not belong in here a considerate person would tell

where
it should belong. If he/her does not know, he/her ignore it to let it die itself without moralizing.

"Bob Lehmann" <none> wrote in message
news:eB*************@TK2MSFTNGP09.phx.gbl...
Why? Are you a net-criminal?

Bob Lehmann

"aa" <aa@virgin.net> wrote in message
news:#l*************@TK2MSFTNGP10.phx.gbl...
> Are you a net-policeman?
>
> "Evertjan." <ex**************@interxnl.net> wrote in message
> news:Xn********************@194.109.133.29...
> > aa wrote on 31 mrt 2004 in microsoft.public.inetserver.asp.general: > > > "Evertjan." <ex**************@interxnl.net> wrote in message
> > > news:Xn********************@194.109.133.29...
> > >> aa wrote on 31 mrt 2004 in

microsoft.public.inetserver.asp.general: > > >> > Thought this question might be out of this NG's scope, there are > > >> > always knowledgable people who might hava an answer.
> > >>
> > >> This has nothing to do with ASP.
> > >>
> > >> Please see an HTML NG.
> >
> > > If you have no answer, feel free not to answer.
> > > If you do not like a question, feel free to ignore it.
> > > This will save everybody's time including that of yours.
> > >
> > > This is not an HTML question either. I posted it here as an act of > > > desperation, hoping someone recommends me a correct NG
> >
> > [please do not toppost on usenet]
> >
> > Dear aa,
> >
> > No, but I suggested you ask in a HTML goup, that is an answer. You did > > not ask: "Please point me to the right group" but ignored the

netiquette
> > to ask for content anyway. The only way to keep NG on topic is to show > > people the way to go.
> >
> > Do not expect people not to respond so when you intentionally

disregard
> > netiquette.
> >
> > >> > <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
> > >>
> > >> Please do NOT send HTML code on usenet
> >
> > This you corrected. thank you.
> >
> >
> > --
> > Evertjan.
> > The Netherlands.
> > (Please change the x'es to dots in my emailaddress)
>
>



Jul 19 '05 #16

P: n/a
aa wrote:
No, he did not because it does not belong to HTML

What are you talking about? Your original post contains nothing BUT HTML.
You asked about client-side functionality. Why do you think an HTML or DHTML
group is not the appropriate place to ask the question?

You're just being obstinate, and it's not the first time.

plonk
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #17

P: n/a
aa
I reckon tt has nothing to do with the client functionality for the link it
correct and the target contains no scripts or tags which might screw up.
Obviously it has to do either with the structure of this shorcut, or with
the way web server serves thise shorcuts.
I posted HTML not for your parsing, but for one who might be willing to
help, to show that the server serves part of the contents.
This NG has to do with IIS so I thought that someone here might have come
across it. If not, I withdraw the question an applologise to all those who
took it as a personal offence.
Incidentally, knowing how people might overreact, I introduce my question
with:
"Though this question might be out of this NG's scope, there are always
knowledgable people who might have an answer"

Do you still think I deserve that warm welcome you and others are serving me
here?
"Bob Barrows" <re******@NOyahoo.SPAMcom> wrote in message
news:uR**************@TK2MSFTNGP12.phx.gbl...
aa wrote:
No, he did not because it does not belong to HTML
What are you talking about? Your original post contains nothing BUT HTML.
You asked about client-side functionality. Why do you think an HTML or

DHTML group is not the appropriate place to ask the question?

You're just being obstinate, and it's not the first time.

plonk
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 19 '05 #18

P: n/a
aa
This is a matter of personal preferences. I know a lot of prople who do not
like inline comments because the do not preserve the original message

The Top postiong allows to keep the original message intact.

The best way to reply is using the context and with top posting it is done
by copying the relevant bits from the original on top.

I apprecuiate that this bloats a posting, but this was an issue time ago,
but today given the existing speed and cost of memory it is not an issue.
I therefore do not see why some people should impose their personal
preferences onto the others.

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:eD****************@TK2MSFTNGP12.phx.gbl...
This is a "top post". I've placed my reply above the quote of your message. Do a Google on the word netiquette to read why it is frowned upon.

ljb wrote:
What is "top post"? I'm sorry I'm not familiar with that term.
This is an "inline" or "interspersed" reply, so named becuase it appears
directly below the quoted text to which I am replying. It can help make a
conversation easier to follow, especially if I am replying to several

points within your post. Inline posting is preferred because it encourages the
person making the reply to trim the irrelevant pieces of text from the
quoted text.

thanks
This is also an "inline" or "interspersed" reply, but it is sometimes
mistakenly called a "bottom post", which should refer to a post which is

the opposite of a "top" post: the entire reply text appears below the entire
block of quoted text. This can be just as bad as top-posting since the
bottom-poster may neglect to trim the quote.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

Jul 19 '05 #19

P: n/a
aa
Thanks, Roland, for being patient.
I do test it on w2k/ii5
The shorcut is sitting on the server and I am accessing it throught IE
(using http, I guess).
So what I wanted to inderstand it:
From my client IE I send a request to the server for something which is a
shortcut to an HTML fuile sitting on the server.
I do not know how exactly the shortcuts work, so I expected the shortcut
will shortcut to the relevant file which will be returned by the Response
Object.

From what you are saying I understand that Response returnes the shortcut
itself - is that what you mean?
"Roland Hall" <nobody@nowhere> wrote in message
news:ug**************@TK2MSFTNGP12.phx.gbl...
"aa" wrote in message news:OU*************@tk2msftngp13.phx.gbl...
Thought this question might be out of this NG's scope, there are always
knowledgable people who might hava an answer.

If it's not ASP related, then yes, it is out of scope.

A hyperlink to a shortcut to a file returnes an empty screen, and the source code behind this empty screen is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

A hyperlink to a shortcut where? Server? Client?
A shortcut on the server will point to a physical path so the client cannot use it.
A shortcut on the client cannot be pointed to since ASP runs on the server. The code you see is default code provided by your browser to render the page with nothing visual, as it has done. It returned all it could, which is
nothing useful.

Is this supposed to be like this?
Yes.

How does a shortcut work?
A shortcut is a .lnk file to a physical path and file.

Is it possible to use shortcuts in this way?
Not that I am aware of. This is not ASP related. You should post your
question in an Windows OS NG or some other relative NG, perhaps HTML
related.

The reason fo me wanting this is I have a code which builds a link to a
product's Technical Data Sheet basing on product's code.
However sometimes several products share a sigle TDS file, so the ides was
to use shortcut, rather then having same info stored under different
filenames

In ASP, if you have a reference that points to a path, you can store it in a variable for short-term or cookie for mid-term or database/file for long
term. You can then retrieve it and use it as you wish. If you need it
within all pages, then <!-- #include file="myshortcuts.asp"--> on each page will let you do that. Or you could assign it to a session variable, or a
cookie, etc.

Evertjan pointed you to an HTML NG, which you responded was a desire re:
your OP, as you slammed him for doing so. However, given the limitations of your OP, there was not much else to respond with.

He also requested you not top post, which really doesn't make a flying Fred to me, but it does make it easier for others to follow a thread if relative text from a previous post is included and responded to as it would be in a
verbal conversation. He is quite helpful, extremely intelligent and
provides valuable information on numerous NGs. Shooting the cook is not a
good way to get fed. I understand and sympathize you are frustrated. We
all experience that from time to time but you need to reread your posts.

You made a request.
He responded pointing you to a different NG.
You slammed him for not having an answer and stated your original post, at a minimum, was to get pointed to an appropriate NG.

My response to that is, "HELLO?!" (O:=

You also responded with he could have ignored your post. You're right but
be careful what you ask for. However, you could have ignored his response. Jes' sayin'...

HTH... and if not, please provide more detail if you feel this is ASP
related and if not, please try posting to an appropriate NG.

One more thing...
Please set your NG reader to only post with plain text messages. We get
prompted when we reply if it's ok to post in HTML, which we do not want to
do. We then have to modify the response to plain text. This will probably limit helpful responses more than top posting.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp MSDN Library - http://msdn.microsoft.com/library/default.asp

Jul 19 '05 #20

P: n/a
It is simpler than that.

The browser does nothing more than send a request to the webserver for the
HTML file according the the URL in the shortcut.

If the file is local and using a normal file path, then the browser just
simply opens HTML as a "file" from the location given in the shortcut.

--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"aa" <aa@virgin.net> wrote in message
news:#M*************@TK2MSFTNGP10.phx.gbl...
Thanks, Roland, for being patient.
I do test it on w2k/ii5
The shorcut is sitting on the server and I am accessing it throught IE
(using http, I guess).
So what I wanted to inderstand it:
From my client IE I send a request to the server for something which is a
shortcut to an HTML fuile sitting on the server.
I do not know how exactly the shortcuts work, so I expected the shortcut
will shortcut to the relevant file which will be returned by the Response
Object.

From what you are saying I understand that Response returnes the shortcut
itself - is that what you mean?
"Roland Hall" <nobody@nowhere> wrote in message
news:ug**************@TK2MSFTNGP12.phx.gbl...
"aa" wrote in message news:OU*************@tk2msftngp13.phx.gbl...
Thought this question might be out of this NG's scope, there are always
knowledgable people who might hava an answer.

If it's not ASP related, then yes, it is out of scope.

A hyperlink to a shortcut to a file returnes an empty screen, and the source
code behind this empty screen is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

A hyperlink to a shortcut where? Server? Client?
A shortcut on the server will point to a physical path so the client

cannot
use it.
A shortcut on the client cannot be pointed to since ASP runs on the

server.
The code you see is default code provided by your browser to render the

page
with nothing visual, as it has done. It returned all it could, which is
nothing useful.

Is this supposed to be like this?
Yes.

How does a shortcut work?
A shortcut is a .lnk file to a physical path and file.

Is it possible to use shortcuts in this way?
Not that I am aware of. This is not ASP related. You should post your
question in an Windows OS NG or some other relative NG, perhaps HTML
related.

The reason fo me wanting this is I have a code which builds a link to a
product's Technical Data Sheet basing on product's code.
However sometimes several products share a sigle TDS file, so the ides was to use shortcut, rather then having same info stored under different
filenames

In ASP, if you have a reference that points to a path, you can store it in a
variable for short-term or cookie for mid-term or database/file for long
term. You can then retrieve it and use it as you wish. If you need it
within all pages, then <!-- #include file="myshortcuts.asp"--> on each page
will let you do that. Or you could assign it to a session variable, or

a cookie, etc.

Evertjan pointed you to an HTML NG, which you responded was a desire re:
your OP, as you slammed him for doing so. However, given the limitations of
your OP, there was not much else to respond with.

He also requested you not top post, which really doesn't make a flying Fred
to me, but it does make it easier for others to follow a thread if

relative
text from a previous post is included and responded to as it would be in

a verbal conversation. He is quite helpful, extremely intelligent and
provides valuable information on numerous NGs. Shooting the cook is not a good way to get fed. I understand and sympathize you are frustrated. We all experience that from time to time but you need to reread your posts.

You made a request.
He responded pointing you to a different NG.
You slammed him for not having an answer and stated your original post, at a
minimum, was to get pointed to an appropriate NG.

My response to that is, "HELLO?!" (O:=

You also responded with he could have ignored your post. You're right

but be careful what you ask for. However, you could have ignored his

response.
Jes' sayin'...

HTH... and if not, please provide more detail if you feel this is ASP
related and if not, please try posting to an appropriate NG.

One more thing...
Please set your NG reader to only post with plain text messages. We get
prompted when we reply if it's ok to post in HTML, which we do not want to do. We then have to modify the response to plain text. This will

probably
limit helpful responses more than top posting.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -

http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


Jul 19 '05 #21

P: n/a
You're making assumptions that are false.

Maybe because not everybody uses or has access to the "existing speed". Cost
is always an issue if you don't the $$.

I guess though, that it's OK for you to impose your personal
preferences/capabilities.

Bob Lehmann

"aa" <aa@virgin.net> wrote in message
news:Oc**************@TK2MSFTNGP10.phx.gbl...
This is a matter of personal preferences. I know a lot of prople who do not like inline comments because the do not preserve the original message

The Top postiong allows to keep the original message intact.

The best way to reply is using the context and with top posting it is done
by copying the relevant bits from the original on top.

I apprecuiate that this bloats a posting, but this was an issue time ago,
but today given the existing speed and cost of memory it is not an issue.
I therefore do not see why some people should impose their personal
preferences onto the others.

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:eD****************@TK2MSFTNGP12.phx.gbl...
This is a "top post". I've placed my reply above the quote of your

message.
Do a Google on the word netiquette to read why it is frowned upon.

ljb wrote:
What is "top post"? I'm sorry I'm not familiar with that term.


This is an "inline" or "interspersed" reply, so named becuase it appears
directly below the quoted text to which I am replying. It can help make a conversation easier to follow, especially if I am replying to several

points
within your post. Inline posting is preferred because it encourages the
person making the reply to trim the irrelevant pieces of text from the
quoted text.

thanks


This is also an "inline" or "interspersed" reply, but it is sometimes
mistakenly called a "bottom post", which should refer to a post which is

the
opposite of a "top" post: the entire reply text appears below the entire block of quoted text. This can be just as bad as top-posting since the
bottom-poster may neglect to trim the quote.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Jul 19 '05 #22

P: n/a
"Phillip Windell" wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...
: It is simpler than that.
:
: The browser does nothing more than send a request to the webserver for the
: HTML file according the the URL in the shortcut.
:
: If the file is local and using a normal file path, then the browser just
: simply opens HTML as a "file" from the location given in the shortcut.

I'm not sure I agree with Phillip's assessment or I don't understand his
response. This is how I hear the question:

Can I access, with my browser, a web server, and execute a shortcut on that
server, which is a .lnk file?

Perhaps the misunderstanding is the term "shortcut". A shortcut is a .lnk
file that points to any other type of file. Basically a shortcut on a local
computer works like a hyperlink on a web page, on a web server. The
shortcut and the link are not the files you want returned, they are just the
method to directly retrieve the files you want returned.

If you want to request an HTML page on a web server, you do not need a
shortcut file to access it, nor would you want to. The web server can only
serve that file to the client if it [the server] has access and rights to do
so. A virtual directory would be required or FSO, using a physical path, to
serve that file to the client. The virtual directory would require rights
for the anonymous user since the client will be using that account on the
server, unless the client had an account with authorization rights and Basic
or Integrated authentication was set for directory security.

What would not happen is if you could actually access a .lnk shortcut file,
expect the shortcut would run as it would if you were running it local.
Perhaps adding specific MIME association could actually get it to run, I
don't know but the result would return to the console and not to the client
across the wire.

Perhaps explaining what you want to accomplish, and why you think you need a
shortcut file to do it, might help clear up some of the confusion on this
end.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #23

P: n/a
aa
"I guess though, that it's OK for you to impose your personal
preferences/capabilities."

I see your sarcasm, Bob.
I do indeed exersise my personal preferences/capabilities. But I never
contemplated to impose it on other people by dictating them to use or not to
use top posting or other preferences of mine.

Whatever format people are answering me in, I am always happy as long as the
answer in non-nonsense.

Regarding this particular exchage above - it happened only because every
time I was coming to this NG, I saw thaty some-one replied to my query. I
downloaded the reply only to see another preach before Roland gave a clear
answer right to the point.

"Bob Lehmann" <none> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
You're making assumptions that are false.

Maybe because not everybody uses or has access to the "existing speed". Cost is always an issue if you don't the $$.

I guess though, that it's OK for you to impose your personal
preferences/capabilities.

Bob Lehmann

"aa" <aa@virgin.net> wrote in message
news:Oc**************@TK2MSFTNGP10.phx.gbl...
This is a matter of personal preferences. I know a lot of prople who do not
like inline comments because the do not preserve the original message

The Top postiong allows to keep the original message intact.

The best way to reply is using the context and with top posting it is done
by copying the relevant bits from the original on top.

I apprecuiate that this bloats a posting, but this was an issue time ago, but today given the existing speed and cost of memory it is not an issue. I therefore do not see why some people should impose their personal
preferences onto the others.

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:eD****************@TK2MSFTNGP12.phx.gbl...
This is a "top post". I've placed my reply above the quote of your

message.
Do a Google on the word netiquette to read why it is frowned upon.

ljb wrote:
> What is "top post"? I'm sorry I'm not familiar with that term.

This is an "inline" or "interspersed" reply, so named becuase it appears directly below the quoted text to which I am replying. It can help make a conversation easier to follow, especially if I am replying to several points
within your post. Inline posting is preferred because it encourages
the person making the reply to trim the irrelevant pieces of text from the
quoted text.

>
> thanks

This is also an "inline" or "interspersed" reply, but it is sometimes
mistakenly called a "bottom post", which should refer to a post which
is the
opposite of a "top" post: the entire reply text appears below the

entire block of quoted text. This can be just as bad as top-posting since the
bottom-poster may neglect to trim the quote.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.



Jul 19 '05 #24

P: n/a
aa
Thanks, Roland.

I have an ASP code which goes through a product database and generates a
list of links to each products Health&Safety file in the format:
href=productCode.pdf
However quite a number of products with different codes share the same
Health&Safety data. So instead of having several files with different names
but with the same contents, I want to have one file and several shortcuts to
is with different name.
This will save disk space and, more important, ease the maintenance.
If course I can have a single Health&Safety file for several products and
add some logic to ASP code, but in this case everytime I add a product, I
will have to make addition to the ASP code.
No after eading your posts I understand that I should have asked how
shortcuts are implemented.
Perhaps instead of a shortcut, there is a way to give a file several aliases
and use them to request this file?
Please note that I cannot ship Health&Safety data from a database, because
they need to be shipped in PDF format, and therefore have to be stored as
PDF files on the server.
"Roland Hall" <nobody@nowhere> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
"Phillip Windell" wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...
: It is simpler than that.
:
: The browser does nothing more than send a request to the webserver for the : HTML file according the the URL in the shortcut.
:
: If the file is local and using a normal file path, then the browser just
: simply opens HTML as a "file" from the location given in the shortcut.

I'm not sure I agree with Phillip's assessment or I don't understand his
response. This is how I hear the question:

Can I access, with my browser, a web server, and execute a shortcut on that server, which is a .lnk file?

Perhaps the misunderstanding is the term "shortcut". A shortcut is a .lnk
file that points to any other type of file. Basically a shortcut on a local computer works like a hyperlink on a web page, on a web server. The
shortcut and the link are not the files you want returned, they are just the method to directly retrieve the files you want returned.

If you want to request an HTML page on a web server, you do not need a
shortcut file to access it, nor would you want to. The web server can only serve that file to the client if it [the server] has access and rights to do so. A virtual directory would be required or FSO, using a physical path, to serve that file to the client. The virtual directory would require rights
for the anonymous user since the client will be using that account on the
server, unless the client had an account with authorization rights and Basic or Integrated authentication was set for directory security.

What would not happen is if you could actually access a .lnk shortcut file, expect the shortcut would run as it would if you were running it local.
Perhaps adding specific MIME association could actually get it to run, I
don't know but the result would return to the console and not to the client across the wire.

Perhaps explaining what you want to accomplish, and why you think you need a shortcut file to do it, might help clear up some of the confusion on this
end.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp MSDN Library - http://msdn.microsoft.com/library/default.asp

Jul 19 '05 #25

P: n/a
aa
Thank, Phillip?

What is "the URL in the shortcut" ?
Does shortcut has a URL which is parseable by IIS?
If so, then the way I try to use it should work, but it does not.

"Phillip Windell" <@.> wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...
It is simpler than that.

The browser does nothing more than send a request to the webserver for the
HTML file according the the URL in the shortcut.

If the file is local and using a normal file path, then the browser just
simply opens HTML as a "file" from the location given in the shortcut.

--

Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
"aa" <aa@virgin.net> wrote in message
news:#M*************@TK2MSFTNGP10.phx.gbl...
Thanks, Roland, for being patient.
I do test it on w2k/ii5
The shorcut is sitting on the server and I am accessing it throught IE
(using http, I guess).
So what I wanted to inderstand it:
From my client IE I send a request to the server for something which is a
shortcut to an HTML fuile sitting on the server.
I do not know how exactly the shortcuts work, so I expected the shortcut
will shortcut to the relevant file which will be returned by the Response Object.

From what you are saying I understand that Response returnes the shortcut itself - is that what you mean?
"Roland Hall" <nobody@nowhere> wrote in message
news:ug**************@TK2MSFTNGP12.phx.gbl...
"aa" wrote in message news:OU*************@tk2msftngp13.phx.gbl...
Thought this question might be out of this NG's scope, there are always knowledgable people who might hava an answer.

If it's not ASP related, then yes, it is out of scope.

A hyperlink to a shortcut to a file returnes an empty screen, and the source
code behind this empty screen is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

A hyperlink to a shortcut where? Server? Client?
A shortcut on the server will point to a physical path so the client

cannot
use it.
A shortcut on the client cannot be pointed to since ASP runs on the

server.
The code you see is default code provided by your browser to render the
page
with nothing visual, as it has done. It returned all it could, which

is nothing useful.

Is this supposed to be like this?
Yes.

How does a shortcut work?
A shortcut is a .lnk file to a physical path and file.

Is it possible to use shortcuts in this way?
Not that I am aware of. This is not ASP related. You should post your question in an Windows OS NG or some other relative NG, perhaps HTML
related.

The reason fo me wanting this is I have a code which builds a link to a product's Technical Data Sheet basing on product's code.
However sometimes several products share a sigle TDS file, so the ides

was to use shortcut, rather then having same info stored under different
filenames

In ASP, if you have a reference that points to a path, you can store it in
a
variable for short-term or cookie for mid-term or database/file for
long term. You can then retrieve it and use it as you wish. If you need it within all pages, then <!-- #include file="myshortcuts.asp"--> on each page
will let you do that. Or you could assign it to a session variable, or a cookie, etc.

Evertjan pointed you to an HTML NG, which you responded was a desire
re: your OP, as you slammed him for doing so. However, given the
limitations
of
your OP, there was not much else to respond with.

He also requested you not top post, which really doesn't make a flying

Fred
to me, but it does make it easier for others to follow a thread if

relative
text from a previous post is included and responded to as it would be in a verbal conversation. He is quite helpful, extremely intelligent and
provides valuable information on numerous NGs. Shooting the cook is
not
a good way to get fed. I understand and sympathize you are frustrated. We all experience that from time to time but you need to reread your
posts.
You made a request.
He responded pointing you to a different NG.
You slammed him for not having an answer and stated your original post,
at
a
minimum, was to get pointed to an appropriate NG.

My response to that is, "HELLO?!" (O:=

You also responded with he could have ignored your post. You're right
but be careful what you ask for. However, you could have ignored his

response.
Jes' sayin'...

HTH... and if not, please provide more detail if you feel this is ASP
related and if not, please try posting to an appropriate NG.

One more thing...
Please set your NG reader to only post with plain text messages. We
get prompted when we reply if it's ok to post in HTML, which we do not

want to do. We then have to modify the response to plain text. This will

probably
limit helpful responses more than top posting.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -

http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp



Jul 19 '05 #26

P: n/a
ljb
"aa" <aa@virgin.net> wrote in message
news:uG*************@tk2msftngp13.phx.gbl...
Thanks, Roland.

I have an ASP code which goes through a product database and generates a
list of links to each products Health&Safety file in the format:
href=productCode.pdf
However quite a number of products with different codes share the same
Health&Safety data. So instead of having several files with different names but with the same contents, I want to have one file and several shortcuts to is with different name.


I handled what I see as a similar situation by creating files to redirect
the browser to the actual document. In my case in ASP I didn't always know
if my document would be a PDF or DOC. I had a few Word documents mixed into
thousands of PDF's. For those exceptions I created the following in a file
with PDF extension.

<html><head><meta http-equiv="refresh" content="0;
url=pel-512.doc"></head></html>

The browser recognized that it wasn't a true PDF and got redirected to the
final DOC form. Perhaps you could have multiple similar files redirecting to
common documents.

LJB
Jul 19 '05 #27

P: n/a
"aa" wrote in message news:uG*************@tk2msftngp13.phx.gbl...
: I have an ASP code which goes through a product database and generates a
: list of links to each products Health&Safety file in the format:
: href=productCode.pdf
: However quite a number of products with different codes share the same
: Health&Safety data. So instead of having several files with different
names
: but with the same contents, I want to have one file and several shortcuts
to
: is with different name.
: This will save disk space and, more important, ease the maintenance.
: If course I can have a single Health&Safety file for several products and
: add some logic to ASP code, but in this case everytime I add a product, I
: will have to make addition to the ASP code.
: No after eading your posts I understand that I should have asked how
: shortcuts are implemented.
: Perhaps instead of a shortcut, there is a way to give a file several
aliases
: and use them to request this file?
: Please note that I cannot ship Health&Safety data from a database, because
: they need to be shipped in PDF format, and therefore have to be stored as
: PDF files on the server.

Ah, it makes more sense now. I was completely lost! (O:=

Why not have the link go to a specific file but the description will be the
different product codes? The reason I suggest that is because you already
said the .pdf files are productcode.pdf, which is just a duplicate that you
don't want so then that must mean they do not exist or that is the desired
result.

The other thing you could do is have the links all call the same .asp file
where you point to the correct document based on the product code.

Ex.

<span id="pc123" onclick="/asp/info.asp?pc=123">ProductCode 123</span>

info.asp
--------

dim strPC, strFile
strPC = Request.QueryString("pc")
....
strSQL = "SELECT pdfFile FROM hnsFiles WHERE productCode = '" & strPC & "'"
' connect to the database, pass the product code and return the filename
....
strFile = rs("pdfFile")
server.transfer("/healthandsafety/pdf/" & strFile & ".pdf")
' clear memory

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp



Jul 19 '05 #28

This discussion thread is closed

Replies have been disabled for this discussion.