Share codebehind



HI all,

I have multiple websites that need to use one codebehind that why i
compiled the codebehind as class.

i was planed to put the dll file in one of the filesystem directory and
declare it in my machine.config :
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="<myassembly>" publicKeyToken="<my strong
name>" culture="neutral" />
<codeBase version="" href="<file path>"/>
<compilation debug="true" explicit="true" defaultLanguage="vb">
<add assembly="<myassembly>, Version=, Culture=neutral,
PublicKeyToken=<my strong name>"/>

is it the best option?
i didnt want to put in in the GAC cause the GAC is fully trusted

Thanks in advance



Christopher Reed

For it to be recognized as a code-behind DLL, it has to be located in the
bin subdirectory of your web application.

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