D
Donal McWeeney
Hi,
Not sure if I am using the correct terminology, but why can I dynamically
bind to statically declared asp.net server controls but cannot do so with
custom server controls - with the custom controls I get a null reference
exception. Is there any workarounds...
eg.
In my aspx page I declare the following:
<%@ Page language="C#" Inherits="MyCustomPage, etc" %>
<%@ Register Tagprefix="MCC" Namespace="MyCustomControls" Assembly="etc" %>
<MCC:CustomInputBox runat="server" id="customInputBox" ... />
In my backend class...
public class MyCustomPage : Page
{
// Page controls
protected CustomInputBox customInputBox ;
Thanks
Donal
Not sure if I am using the correct terminology, but why can I dynamically
bind to statically declared asp.net server controls but cannot do so with
custom server controls - with the custom controls I get a null reference
exception. Is there any workarounds...
eg.
In my aspx page I declare the following:
<%@ Page language="C#" Inherits="MyCustomPage, etc" %>
<%@ Register Tagprefix="MCC" Namespace="MyCustomControls" Assembly="etc" %>
<MCC:CustomInputBox runat="server" id="customInputBox" ... />
In my backend class...
public class MyCustomPage : Page
{
// Page controls
protected CustomInputBox customInputBox ;
Thanks
Donal