Ask a Question related to ASP Database, Design and Development.
-
J P Singh #1
Hyperlinking Problem
Hi All
I have an application which acts as a small document management system. Our
users upload the document to the server and the application allows them to
search the record and view the files in the browser.
I am storing the name of the file in the database table and when a user
wants to view the record the asp Page spits out the hyperlinks to the file
to allow the user to view them
The only problem I have is when there is a file which has spaces in the name
of the file
for example accounts for july.doc won't hyperlink properly and the user only
sees
[url]http://myserver/files/accounts[/url]
where in it should be [url]http://myserver/files/accounts[/url] for july.doc (even here
has left out the second part)
where as
accountsforjuly.doc will hyperlink fine. like
[url]http://myserver/files/accountsforjuly.doc[/url] as there are no spaces in the file
name.
Does anyone know what I can do to get the 20% instead of the space in the
file name so it hyperlinks properly or any other solution for this.
Thanks
Jas
J P Singh Guest
-
Hyperlinking to a HTML page
I have just started using Flash and have created my first movie. I have a button that I would like to open a HTML file (On a CD). I guess this... -
Flash Banners - properly hyperlinking
I had someone provide us with a Flash ad banner which did not have the hyperlink embedded. Is this appropriate? They told me to wrap HTML code... -
Hyperlinking to data files in MSP 2003
Can someone please take me step by step through how you hyperlink to a data file in Publisher 2003? I know how hyperlinks work, how to create them... -
hyperlinking on an swf file in dreamweaver?
Hello one and all: Quick question using Dreamweaver MX. Great feature is to be able to quickly add a flash button, tell it where to link to and... -
Hyperlinking and ASP.NEt Session
Hi, I am trying to design a Home page for my applicatiion in which i want show the links for for some itms... I tried to put the following <td>... -
Tom B #2
Re: Hyperlinking Problem
Response.Write "<a href=""http://myserver/files/accounts for july.doc"">"
"J P Singh" <noemail@asIhatespam> wrote in message
news:%23enmrNeUDHA.2364@TK2MSFTNGP09.phx.gbl...Our> Hi All
>
> I have an application which acts as a small document management system.name> users upload the document to the server and the application allows them to
> search the record and view the files in the browser.
>
> I am storing the name of the file in the database table and when a user
> wants to view the record the asp Page spits out the hyperlinks to the file
> to allow the user to view them
>
> The only problem I have is when there is a file which has spaces in theonly> of the file
>
> for example accounts for july.doc won't hyperlink properly and the userhere> sees
>
> [url]http://myserver/files/accounts[/url]
>
> where in it should be [url]http://myserver/files/accounts[/url] for july.doc (evenfile> has left out the second part)
>
> where as
>
> accountsforjuly.doc will hyperlink fine. like
> [url]http://myserver/files/accountsforjuly.doc[/url] as there are no spaces in the> name.
>
> Does anyone know what I can do to get the 20% instead of the space in the
> file name so it hyperlinks properly or any other solution for this.
>
> Thanks
>
> Jas
>
>
Tom B Guest
-
only_me #3
Re: Hyperlinking Problem
look up Server.URLencode - that should do the trick
"J P Singh" <noemail@asIhatespam> wrote in message
news:#enmrNeUDHA.2364@TK2MSFTNGP09.phx.gbl...Our> Hi All
>
> I have an application which acts as a small document management system.name> users upload the document to the server and the application allows them to
> search the record and view the files in the browser.
>
> I am storing the name of the file in the database table and when a user
> wants to view the record the asp Page spits out the hyperlinks to the file
> to allow the user to view them
>
> The only problem I have is when there is a file which has spaces in theonly> of the file
>
> for example accounts for july.doc won't hyperlink properly and the userhere> sees
>
> [url]http://myserver/files/accounts[/url]
>
> where in it should be [url]http://myserver/files/accounts[/url] for july.doc (evenfile> has left out the second part)
>
> where as
>
> accountsforjuly.doc will hyperlink fine. like
> [url]http://myserver/files/accountsforjuly.doc[/url] as there are no spaces in the> name.
>
> Does anyone know what I can do to get the 20% instead of the space in the
> file name so it hyperlinks properly or any other solution for this.
>
> Thanks
>
> Jas
>
>
only_me Guest
-
J P Singh #4
Re: Hyperlinking Problem
server.urlencode doesn't work unfortuently.
here is the actual line of code
<td width="29%"><a href=\includes\<%=rs("filename")%>View File</a>
"only_me" <only_me@hotmail.com> wrote in message
news:Oidg8TeUDHA.412@tk2msftngp13.phx.gbl...to> look up Server.URLencode - that should do the trick
>
>
> "J P Singh" <noemail@asIhatespam> wrote in message
> news:#enmrNeUDHA.2364@TK2MSFTNGP09.phx.gbl...> Our> > Hi All
> >
> > I have an application which acts as a small document management system.> > users upload the document to the server and the application allows themfile> > search the record and view the files in the browser.
> >
> > I am storing the name of the file in the database table and when a user
> > wants to view the record the asp Page spits out the hyperlinks to thethe> name> > to allow the user to view them
> >
> > The only problem I have is when there is a file which has spaces in the> only> > of the file
> >
> > for example accounts for july.doc won't hyperlink properly and the user> here> > sees
> >
> > [url]http://myserver/files/accounts[/url]
> >
> > where in it should be [url]http://myserver/files/accounts[/url] for july.doc (even> file> > has left out the second part)
> >
> > where as
> >
> > accountsforjuly.doc will hyperlink fine. like
> > [url]http://myserver/files/accountsforjuly.doc[/url] as there are no spaces in the> > name.
> >
> > Does anyone know what I can do to get the 20% instead of the space in>> > file name so it hyperlinks properly or any other solution for this.
> >
> > Thanks
> >
> > Jas
> >
> >
>
J P Singh Guest
-
only_me #5
Re: Hyperlinking Problem
Now we see your code we can see that Tom B is right you need to quote that
href variable
"J P Singh" <noemail@asIhatespam> wrote in message
news:eflZCZeUDHA.3220@tk2msftngp13.phx.gbl...system.> server.urlencode doesn't work unfortuently.
>
> here is the actual line of code
>
> <td width="29%"><a href=\includes\<%=rs("filename")%>View File</a>
>
> "only_me" <only_me@hotmail.com> wrote in message
> news:Oidg8TeUDHA.412@tk2msftngp13.phx.gbl...> > look up Server.URLencode - that should do the trick
> >
> >
> > "J P Singh" <noemail@asIhatespam> wrote in message
> > news:#enmrNeUDHA.2364@TK2MSFTNGP09.phx.gbl...> > > Hi All
> > >
> > > I have an application which acts as a small document managementthem> > Our> > > users upload the document to the server and the application allowsuser> to> > > search the record and view the files in the browser.
> > >
> > > I am storing the name of the file in the database table and when athe> file> > > wants to view the record the asp Page spits out the hyperlinks to the> > > to allow the user to view them
> > >
> > > The only problem I have is when there is a file which has spaces inuser> > name> > > of the file
> > >
> > > for example accounts for july.doc won't hyperlink properly and the(even> > only> > > sees
> > >
> > > [url]http://myserver/files/accounts[/url]
> > >
> > > where in it should be [url]http://myserver/files/accounts[/url] for july.docthe> > here> > > has left out the second part)
> > >
> > > where as
> > >
> > > accountsforjuly.doc will hyperlink fine. like
> > > [url]http://myserver/files/accountsforjuly.doc[/url] as there are no spaces in> the> > file> > > name.
> > >
> > > Does anyone know what I can do to get the 20% instead of the space in>> >> > > file name so it hyperlinks properly or any other solution for this.
> > >
> > > Thanks
> > >
> > > Jas
> > >
> > >
> >
>
only_me Guest
-
John Beschler #6
Re: Hyperlinking Problem
Quoting is the answer as mentioned before.
Here is the correct line of code (one possible version):
<td width="29%"><a href="\includes\<%=rs("filename")%>">View File</a>
NOTE: You were also missing the closing > for the <a
need to quote that>-----Original Message-----
>Now we see your code we can see that Tom B is right youdocument management>href variable
>
>"J P Singh" <noemail@asIhatespam> wrote in message
>news:eflZCZeUDHA.3220@tk2msftngp13.phx.gbl...>View File</a>>> server.urlencode doesn't work unfortuently.
>>
>> here is the actual line of code
>>
>> <td width="29%"><a href=\includes\<%=rs("filename")%>>
>> "only_me" <only_me@hotmail.com> wrote in message
>> news:Oidg8TeUDHA.412@tk2msftngp13.phx.gbl...>> > look up Server.URLencode - that should do the trick
>> >
>> >
>> > "J P Singh" <noemail@asIhatespam> wrote in message
>> > news:#enmrNeUDHA.2364@TK2MSFTNGP09.phx.gbl...
>> > > Hi All
>> > >
>> > > I have an application which acts as a smallapplication allows>system.>> > Our
>> > > users upload the document to the server and thetable and when a>them>> to>> > > search the record and view the files in the browser.
>> > >
>> > > I am storing the name of the file in the databasehyperlinks to the>user>> > > wants to view the record the asp Page spits out thewhich has spaces in>> file>> > > to allow the user to view them
>> > >
>> > > The only problem I have is when there is a fileproperly and the>the>> > name
>> > > of the file
>> > >
>> > > for example accounts for july.doc won't hyperlink[url]http://myserver/files/accounts[/url] for july.doc>user>> > only
>> > > sees
>> > >
>> > > [url]http://myserver/files/accounts[/url]
>> > >
>> > > where in it should beare no spaces in>(even>> > here
>> > > has left out the second part)
>> > >
>> > > where as
>> > >
>> > > accountsforjuly.doc will hyperlink fine. like
>> > > [url]http://myserver/files/accountsforjuly.doc[/url] as thereinstead of the space in>the>> > file
>> > > name.
>> > >
>> > > Does anyone know what I can do to get the 20%solution for this.>> the>> > > file name so it hyperlinks properly or any other>>>>> > >
>> > > Thanks
>> > >
>> > > Jas
>> > >
>> > >
>> >
>> >
>>
>
>.
>John Beschler Guest
-
Janet #7
hyperlinking problem
I am trying to add hyperlinks to directories to my web
sites so I can go from Publisher98 to Publisher2002. I
have been using Publisher98.
About a month ago, I created a directory on my web site,
loaded the pages and image files to it, linked to it,
added the new link to my publisher document, saved as
html. Everything worked perfectly. But I had a series
of health problems so I never got it uploaded. A couple
of weeks ago, I got back to it. Now, the new link does
not work. When I save as html, I get messages that it is
not a valid link.
The crazy thing is that there is another link to a
directory in the web site that works:
[url]http://washrag.tripod.com/blog/[/url] works
[url]http://washrag.tripod.com/SURVEYB/[/url] does not.
I copied the first to my address field and I can link to
it. I copy the second to my address field and it does
not work. If, however, I copy the first to the address
field and insert "SURVEYB" for "blog", it links.
I checked the html code, and the blog link is there, the
SURVEYB link is not.
I suspect that in the meantime, my Publisher98 has been
hit by hackers.
If anybody knows any other explanation and has
instructions as to how to fix this problem, let me know,
as I always hate to restore anything, it just takes time.
Thanks if anyone can help.
Janet Guest
-
David Bartosik - MS MVP #8
Re: hyperlinking problem
I can't tell even after reading this over twice, what it is you are asking
or having trouble with. If you are having trouble with understanding a
folder structure I'd suggest reading
[url]http://www.davidbartosik.com/pub2002/pub2002_27.htm[/url] . If you are having
trouble with uploading I'd suggest the tutorial at
[url]http://www.davidbartosik.com/ppt.htm[/url]
--
David Bartosik - MS MVP
for Publisher help:
[url]www.davidbartosik.com[/url]
enter to win Pub 2003:
[url]www.davidbartosik.com/giveaway.aspx[/url]
"Janet" <anonymous@discussions.microsoft.com> wrote in message
news:da0501c43ab9$a483fa50$a301280a@phx.gbl...> I am trying to add hyperlinks to directories to my web
> sites so I can go from Publisher98 to Publisher2002. I
> have been using Publisher98.
>
> About a month ago, I created a directory on my web site,
> loaded the pages and image files to it, linked to it,
> added the new link to my publisher document, saved as
> html. Everything worked perfectly. But I had a series
> of health problems so I never got it uploaded. A couple
> of weeks ago, I got back to it. Now, the new link does
> not work. When I save as html, I get messages that it is
> not a valid link.
>
> The crazy thing is that there is another link to a
> directory in the web site that works:
>
> [url]http://washrag.tripod.com/blog/[/url] works
> [url]http://washrag.tripod.com/SURVEYB/[/url] does not.
>
> I copied the first to my address field and I can link to
> it. I copy the second to my address field and it does
> not work. If, however, I copy the first to the address
> field and insert "SURVEYB" for "blog", it links.
>
> I checked the html code, and the blog link is there, the
> SURVEYB link is not.
>
> I suspect that in the meantime, my Publisher98 has been
> hit by hackers.
>
> If anybody knows any other explanation and has
> instructions as to how to fix this problem, let me know,
> as I always hate to restore anything, it just takes time.
>
> Thanks if anyone can help.
David Bartosik - MS MVP Guest



Reply With Quote

