P
Peter Young
I'm trying to access the Attributes of a base control, but am seeing something strange.
In this simple example:
namespace WebControlLibrary1
{
public class WebCustomControl1 : System.Web.UI.WebControls.ImageButton
{
protected override void Render(HtmlTextWriter output)
{
System.Diagnostics.Debug.WriteLine(base.GetType().ToString());
System.Diagnostics.Debug.WriteLine(this.GetType().ToString());
base.Render(output);
}
}
}
The output of the debug writes is as follows:
WebControlLibrary1.WebCustomControl1
WebControlLibrary1.WebCustomControl1
I expected to see something like this:
System.Web.UI.WebControls.ImageButton
WebControlLibrary1.WebCustomControl1
How do I access the base ImageButton control?
TIA,
Pete
In this simple example:
namespace WebControlLibrary1
{
public class WebCustomControl1 : System.Web.UI.WebControls.ImageButton
{
protected override void Render(HtmlTextWriter output)
{
System.Diagnostics.Debug.WriteLine(base.GetType().ToString());
System.Diagnostics.Debug.WriteLine(this.GetType().ToString());
base.Render(output);
}
}
}
The output of the debug writes is as follows:
WebControlLibrary1.WebCustomControl1
WebControlLibrary1.WebCustomControl1
I expected to see something like this:
System.Web.UI.WebControls.ImageButton
WebControlLibrary1.WebCustomControl1
How do I access the base ImageButton control?
TIA,
Pete