I am using asp.net . I am getting the error rendering contol- Header1.
An unhandled exception has occurred. HtmlImageID property is not specified.
How to fix this error?
<tr>
<td style="width: 100%; text-align: left; border-top-width: 0px; border-left-width: 0px; border-left-color: black; border-bottom-width: 0px; border-bottom-color: black; border-top-color: black; border-right-width: 0px; border-right-color: black; padding-right: 0px; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px;" valign="top">
<uc2:Header ID="Header1" runat="server" OnLoad="Header1_Load" EnableTheming="true" EnableViewState="true" Visible="true" />
</td>
</tr>
My uc2 is
<%@ Register Src="controls/Header.ascx" TagName="Header" TagPrefix="uc2" %>
Code Behind :
protected void Header1_Load(object sender, EventArgs e)
{
}
In your
<uc2:Headertag you will need to specify a value forHtmlImageID. What this value needs to be is hard to say without seeing the details of uc2.