Results 1 to 7 of 7

Thread: How can I deploy a site while hiding as much code as possible?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    122

    Question How can I deploy a site while hiding as much code as possible?

    I am working on a ASP.NET Website the has a number of pages with a lot of code and business logic. If I am installing it on my company's server for our internal use, there is no problem. However, if we sell a Website to a client, we do not want them to have access to all of the code on the .ASPX.VB pages. Is there a way to move hide this code in a DLL or something so that the only code the client will have access to is what is actually on the .ASPX pages, but not the .ASPX.VB pages?

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    Why are you wanting to hide the code from them? They bought your website which means they bought the code that it was made with. Restricting access seems a little unethical to me..but hey..thats me.
    ~Ryan





    Have I helped you? Please Rate my posts.

  3. #3
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    yeah. noroblem, you just stick all you important business logic into the dll's, stick the dll's into the bin directory of the web app, and call the functions from your .vb codebehind pages
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Originally posted by rdove
    Why are you wanting to hide the code from them? They bought your website which means they bought the code that it was made with. That seems a little unethical to me..but hey..thats me.
    No not necessarily. They may have bought your services to create a website, doesnt mean they paid to take your code and do whatever your wish with it.

    Thee is nothing unethical about it.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    122
    I'm not worried about hiding code from the clients that they need for their own Website. However, I do not want to give away the business logic such that the client can simply turn around, repackage our code and start selling it as their own product.

    Thanks, Cander.

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    your welcome

    oh ..and all you need to do is delcare the dll in your codebehind like you would any othe class in .NET

    Dim myobject As New Namespace.classname
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    122
    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width