p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Professional (http://p2p.wrox.com/forumdisplay.php?f=57)
-   -   ENCODING DECODING (http://p2p.wrox.com/showthread.php?t=34314)

everest October 15th, 2005 02:49 PM

Hi all,
I have my video file names stored in database table. when i load page i show them as a link. I have also set up windows media server where i store the actual files and once clicked on the link, serve the video to the user.
the code is like
<asp:HyperLink NavigateUrl="mms://myServerName/FolderName/V1.wmv"
Runat="server" id="HyperLink1">watch video</asp:HyperLink>

what i don't want is i don't want to show user the the actual file name on the status bar when they point cursor to link, instead i want to encode the url. i tried it, it fails to load video on Media Player.

Your help or chunk of code is appreciated

Imar October 15th, 2005 05:59 PM

What exactly do you think you mean with "encode the url"?

What do you want to show on the status bar??

Imar Spaanjaars
Everyone is unique, except for me.

everest October 16th, 2005 11:55 PM

What i meant by encoding URL is i don't want users to see the actual file name or file path in status bar.

your help would be appreciated

Imar October 17th, 2005 01:41 AM

You can't hide the link to the file directly; after all the browser needs to know which fie to download.

You could clear the status bar when the mouse hovers over the link so you can't directly see what file it is linking to. However, a simple right-click on the link, or View Source will reveal the link anyways.....

A better alternative might be to have a generic download page, like Download.asp that accepts the Id of a file users can download. Inside that file, look at the Id, find the related file and stream it to a browser. Take a look here for some ideas on how to do this:


This still doesn't really hide the file name though. Download.asp?Id=123 will always get you the same file though....

Imar Spaanjaars
Everyone is unique, except for me.

All times are GMT -4. The time now is 12:59 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.