Hi all,
I have a little problem with an IMG on my HTML code. I assign an attribute onclick to a javascript method, it fails me with a javascript error notifying me that an object is expected, but I cannot resolve what exactly I'm doing wrong.
This is my code:
[vb Code]
Me.btnCerrar.Attributes.Add("onclick", "javascript:qmCerrar();")
[HTML Code]
<table id="Table1" runat="server" border="0" cellpadding="0" cellspacing="0" class="cabeceraTabla" style="z-index: 106; left: 0px; width: 368px; position: absolute; top: 0px; height: 6px">
<tr>
<td style="height: 19px; width: 372px;">
<asp:Label ID="labTituloLayFoto" runat="server" CssClass="etiquetaFiltro" Text="Añadir Fotografía" Style="z-index: 130; left: 5px; position: absolute; top: 3px" Width="109px"></asp:Label>
</td>
<td align="right" style="width: 0px; height: 19px; text-align: right;">
<img id="btnCerrar" runat="server" class="cursor" src="../Imagenes/imgBotonCerrar.gif" style="height:14px;width:15px;z-index: 102; left: 312px; position: absolute; top: 2px"/>
</td>
</tr>
</table>
Programmer