IxiRancid Posted January 30, 2006 Posted January 30, 2006 Can someone please guide me to a link or an article describing how to make and use a DLL on a webpage. I wouldn't like to show the code when the webproject is sold (and deployed on the client's server), or perhaps there's another way to hide my code from the local IT dept.? Quote
Nate Bross Posted January 30, 2006 Posted January 30, 2006 I'd put as much code in the 'Code Behind' as possible and only put completely necessary code in the aspx/ascx pages. Quote ~Nate� ___________________________________________ Please use the [vb]/[cs] tags on posted code. Please post solutions you find somewhere else. Follow me on Twitter here.
Mister E Posted January 31, 2006 Posted January 31, 2006 Just implement the IHttpHandler interface. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebihttphandlerclassprocessrequesttopic.asp Compile the .ashx into a DLL. Users can then reference that in their web project and use it in their website by adding a <httpHandlers> block to their web.config file. Quote
Administrators PlausiblyDamp Posted January 31, 2006 Administrators Posted January 31, 2006 Depends on what you mean by make and use a DLL on a webpage if you just want a re-usable library of functions that can be called from a webpage then you can create the DLL as a ClassLibrary and simply reference it from your web application. If you mean something else then could you give a little more detail... Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
IxiRancid Posted February 1, 2006 Author Posted February 1, 2006 The post from Mister E helped me, that's what I need. Basically just to hide the codebehind, so they won't reuse my lines :) Quote
Administrators PlausiblyDamp Posted February 1, 2006 Administrators Posted February 1, 2006 If you are deploying a web application you don't need to deploy any of the code-behind files anyway, the code is compiled into the \bin\whatever.dll. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.