how to hide aspx.c# or vb RRS feed

  • Question

  • User1912815929 posted

    i have build a web deployment project when i install it i can able to see the action code file ie,aspx.vb or aspx.c# as well as design file aspx file. infact if this web site is published ordinarily all the action code files are hidden, when i build the deployment project and install ,these files are not hiding ,if this is visible, client can easily able to read the code wat is inside .....is  there  any solution..




    Wednesday, October 14, 2009 7:17 AM


All replies

  • User-68639941 posted


    you can compile your project and deploy using asp.net compilation tools

    Wednesday, October 14, 2009 8:34 AM
  • User1282917655 posted

    publish your website, and uncheck the option that "allow aspx to be editable". 

    Wednesday, October 14, 2009 8:37 AM
  • User1912815929 posted

    publish your website, and uncheck the option that "allow aspx to be editable"

    can u tell me where can i set this "allow aspx to be editable"  whether in IIS or something

    if in IIS which tab in IIS i have to set this........ 

    Wednesday, October 14, 2009 9:59 AM
  • User1912815929 posted

    Actually i am using vs2005 to compile and run .can u tell me how to do this using vs2005...   

    Wednesday, October 14, 2009 10:07 AM
  • User2077888689 posted


    Right click on the Website in the solution explorer, select Publish Website, then a dialog pops up asking you for the destination folder, in the same popup find a checkbox which says "Allow this precompiled site to be updateable", if you uncheck this all the code in the markup is removed. The file will still remain the folders. You cannot avoid that.

    Wednesday, October 14, 2009 10:51 AM
  • User1912815929 posted

    hi ratish_shriyan

                   all u said is a website publishing concept .my problem is wen i build using web setup project the output msi i got was installed in client and these installed files has contains  aspx.vb also i want the coding file to be hidden and only design file visible like normal publish. how to do that...  

    Wednesday, October 14, 2009 11:48 AM
  • User372121194 posted


    We can add Web Deployment project (http://msdn.microsoft.com/en-us/magazine/cc163448.aspx) to precompile your ASP.NET website and then use this Web Deployment Project's output as Web Setup's input (Right click Web Setup project and select Add Project Output..., and then select Web deployment project from Project dropdown list).

    For more information, see http://weblogs.asp.net/scottgu/archive/2005/11/06/429723.aspx


    I look forward to receiving your test results.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 19, 2009 3:35 AM