J
jay
Greetings
ASP.NET 2.0
I'm developing a webcontrol. The class will ultimately end up in a
webcontrols DLL, but for development purposes, I want to put the class
in a code-behind. This is so that I can work on the class without
recompiling and deploying a DLL, and waiting for the website to
recompile. The website takes a long time to load after a recompile. I'm
trying to avoid that delay. Making my changes in the code behind
accomplishes that.
public partial class TestPage_aspx : Page
{
....
}
namespace howdy {
public class TestControl : WebControl
{
....
}
}
Initially, I put a place holder on the page, then created an instance
of TestControl and added it to the place holder. Now that I'm dealing
with the postbacks, etc, I'd rather do it declaratively.
<whatever:TestControl ID="tester" runat="server"/>
I'm having trouble registering the control on the page, though.
<%@ Register Namespace="howdy" Assembly="???" TagPrefix="whatever" %>
If that's the proper way to do it, what should I enter for Assembly? (I
think it would be APP_CODE if I put it in the app_code folder, but that
too causes a recompile, so I'm avoiding it).
ASP.NET 2.0
I'm developing a webcontrol. The class will ultimately end up in a
webcontrols DLL, but for development purposes, I want to put the class
in a code-behind. This is so that I can work on the class without
recompiling and deploying a DLL, and waiting for the website to
recompile. The website takes a long time to load after a recompile. I'm
trying to avoid that delay. Making my changes in the code behind
accomplishes that.
public partial class TestPage_aspx : Page
{
....
}
namespace howdy {
public class TestControl : WebControl
{
....
}
}
Initially, I put a place holder on the page, then created an instance
of TestControl and added it to the place holder. Now that I'm dealing
with the postbacks, etc, I'd rather do it declaratively.
<whatever:TestControl ID="tester" runat="server"/>
I'm having trouble registering the control on the page, though.
<%@ Register Namespace="howdy" Assembly="???" TagPrefix="whatever" %>
If that's the proper way to do it, what should I enter for Assembly? (I
think it would be APP_CODE if I put it in the app_code folder, but that
too causes a recompile, so I'm avoiding it).