Last post May 11, 2009 09:57 AM by Lee Dumond
May 11, 2009 02:44 AM|khparhami|LINK
I am busy reading and coding the book "Wrox - ASP.NET 2.0 Website Programming Problem Design Solution" and at the end of chapter 3 ther is an important note as follow, that I didn't understand clearly if I should create a new seprate project
inside the existing project , and how can I refrence the project to it. the class
WebCustom Event should be made inside this new project.
here is the note:
Note that for custom events to be dynamically loaded correctly when the application starts, they
must be placed in their own pre-compiled assembly. This is because the ASP.NET runtimes try to
wouldn't be found if you placed the source code there. Because of this, you must create a
Project to the solution containing the web project, you'll be able to reference the project instead of
the compiled file, so that an updated version of the DLL will be generated and copied into the web
project's bin folder every time you compile the solution.
May 11, 2009 09:57 AM|Lee Dumond|LINK
Just do exactly as the book says:
"If you add the Library Project to the solution containing the web project, you'll be able to reference the project..."
That means to add the project inside the existing solution, then add a reference to the new project from the web site (Add Reference, Browse Tab, click on the project).