Restricting Files

T

thomson

Hi all,
i do have .wmv extension movie file in my folder, This is
called in an aspx file, and it plays well,

The problem is when i give a direct url like
http://localhost/App/Movie.wmv, it actually plays the movie file in the
Windows Media Player. This should not happen.

So i created a Handler in the Web.config file to restrict all the files
of wmv extension, It worked fine.

so when i give this file http://localhost/App/Movie.wmv , it says this
type is not served.

But in my aspx page also it not plays--How do i do it

I want this to be played in the aspx page , bot not directly giving the
path.

Any insights


Thanks in Advance

thomson
 
N

NIan

Did you call put something like <object >Movie.wmv </object> or <embed>
within the HTML code, so the clientside was doing request to the server
or did you using "binary streaming"? if you did the first method, and
it didn't play then asp.net is working probably ?_? because that is a
GET command issue from client side and it will go through your handler.
 
T

thomson

Iam Using the first Method
<object >Movie.wmv </object> or <embed>
within the HTML code

and i have used resricted the .wmv extension in the handler section ,

Any insights?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top