Click to See Complete Forum and Search --> : On an event, say, 'ondbclick' how do i run a peice of C# code?


The Undefeated
November 16th, 2005, 05:09 PM
When a user does some sort of action that can trigger an event, i want to run a peice of code like this:

private void OnEvent()
{

//code here :-)

}

What do i put in the .aspx file next to 'ondbclick =' to run OnEvent() ?

Igor Soukhov
November 16th, 2005, 06:04 PM
Use the Page.RegisterClientScriptBlock() method to register a peace of client side script code.