I am currently working with a user control - it is functioning as designed. I am trying to add an image button to it, and I am getting the error, "Object reference not set to an instance of an object".
I am using VS.NET, and made sure that the line
Code:
Protected WithEvents imbHeader As System.Web.UI.WebControls.ImageButton
was included in the codebehind.
This User Control's main purpose is to house a datalist. What I am trying to do is put an Image Button in the header template, so that I can set it's imageURL property dynamically. Is there a conflict wherein I can't place another control into a datalist?
Thanks in advance
Colonel
- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.