[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

handling double-click on a table element

Sunil

1/20/2003 6:15:00 PM

Iam new to .net programming. is there a way to handle double-click on a
table
using custom webserver control ( i can handled on client using htc).

Here is what i have done for custom web server control.
But iam not able to handle double-click.

using System;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace customElements
{
public class CustomTable: Table
{
public event EventHandler DblClick;
public void Reset() {
DblClick = null;
}

// Invokes delegates registered with the double Click event.
protected virtual void OndblClick(EventArgs e)
{
if (DblClick != null)
{
DblClick(this, e);
}
}

}
}

there is a simple way to do it?
appreicate your help.
thanks