RE: Inconsistent behavior when clicking on files in document libra by v-wdxu
v-wdxu
Sat Sep 25 04:20:59 CDT 2004
------=_NextPart_0001_024C3B48
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi,
Sicne ascx file extension is used for ASP.net built-in html component,
after the installation of ASP.net, this file extension is treated
differentlly as others. So far as I know, there is no way for us to make it
downloadable, which is also not encouraged by Microsoft to do so for this
kind of modification will affect the ASP.net web applicatoin behavior.
If you want to do so, you can develop one ISAPI filter to monitor the ascx
request. If one client request the ascx which means he is going to download
this file, you can read the ascx file from the server disk and then save it
as one temperary file as other file extension dll or exe etc. Then send the
temprory file url to the client for the download. After the download
completed, the client can only change the file extension to obtain the ascx
file.
Please feel free to let me know if you have any question.
Best Regards,
Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
------=_NextPart_0001_024C3B48
Content-Type: text/x-rtf
Content-Transfer-Encoding: 7bit
{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs16 Hi,
\par
\par Sicne ascx file extension is used for ASP.net built-in html component, after the installation of ASP.net, this file extension is treated differentlly as others. So far as I know, there is no way for us to make it downloadable, which is also not encouraged by Microsoft to do so for this kind of modification will affect the ASP.net web applicatoin behavior.
\par
\par If you want to do so, you can develop one ISAPI filter to monitor the ascx request. If one client request the ascx which means he is going to download this file, you can read the ascx file from the server disk and then save it as one temperary file as other file extension dll or exe etc. Then send the temprory file url to the client for the download. After the download completed, the client can only change the file extension to obtain the ascx file.
\par
\par Please feel free to let me know if you have any question.
\par
\par Best Regards,
\par Wei-Dong Xu
\par Microsoft Product Support Services
\par Get Secure! - www.microsoft.com/security
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par }
------=_NextPart_0001_024C3B48--