A
Alhambra Eidos Kiquenet
Hi all, misters,
I have a custom web control, and I want use it in my main user control ASCX.
My webcontrol has one event, see source code above
/// <summary>Control DropDownExtender para Ordenacion</summary>
[DefaultProperty("TargetControlID"), ToolboxItem(true),
ToolboxData("<{0}ropDownExtenderOrdenacion
runat=server></{0}ropDownExtenderOrdenacion>")]
public class DropDownExtenderOrdenacion : DropDownExtender
....
/// <summary>Click ordenación Asc</summary>
public event EventHandler ClickAscendente;
....
void lnkAscendente_Click(object sender, EventArgs e)
{
this.OnClickAscendente();
}
protected void OnClickAscendente()
{
EventArgs e = new EventArgs();
if (ClickAscendente != null) ClickAscendente(this, e);
RaiseBubbleEvent(this, e);
}
Using my webcontrol in ASCX:
<ordenacionropDownExtenderOrdenacion ID="ddeOrdenacionTasador"
runat="server" TargetControlID="lbTareasAsignadas_Columna_ClaveTasa"
ClickAscendente="OrdenacionAscendenteTasador_Click" />
Then, I get the following error:
Parser Error Message: Type
'TINSA.Cliente.Util.Controles.Ordenacion.DropDownExtenderOrdenacion' does not
have a public property named 'ClickAscendente'.
Any idea, please ? I'll be very grateful. Thanks in advance. Best regards
I have a custom web control, and I want use it in my main user control ASCX.
My webcontrol has one event, see source code above
/// <summary>Control DropDownExtender para Ordenacion</summary>
[DefaultProperty("TargetControlID"), ToolboxItem(true),
ToolboxData("<{0}ropDownExtenderOrdenacion
runat=server></{0}ropDownExtenderOrdenacion>")]
public class DropDownExtenderOrdenacion : DropDownExtender
....
/// <summary>Click ordenación Asc</summary>
public event EventHandler ClickAscendente;
....
void lnkAscendente_Click(object sender, EventArgs e)
{
this.OnClickAscendente();
}
protected void OnClickAscendente()
{
EventArgs e = new EventArgs();
if (ClickAscendente != null) ClickAscendente(this, e);
RaiseBubbleEvent(this, e);
}
Using my webcontrol in ASCX:
<ordenacionropDownExtenderOrdenacion ID="ddeOrdenacionTasador"
runat="server" TargetControlID="lbTareasAsignadas_Columna_ClaveTasa"
ClickAscendente="OrdenacionAscendenteTasador_Click" />
Then, I get the following error:
Parser Error Message: Type
'TINSA.Cliente.Util.Controles.Ordenacion.DropDownExtenderOrdenacion' does not
have a public property named 'ClickAscendente'.
Any idea, please ? I'll be very grateful. Thanks in advance. Best regards