Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
How to create new eventhandler for a button in webExplorerBar
posted

Dear all,

searched a lot on this forum, but still can't find the answer on my question.
I've placed a button in the webExplorerBar, but i don't know how to create an eventhandler on this button.

I've tried this :

Button btnFind = (Button)WebExplorerBar1.Groups[3].Items[0].FindControl("btnFind");

btnFind.Click += new EventHandler(btnFind_Click);

protected void btnFind_Click(object sender, EventArgs e)
{
 Debug.WriteLine("Event btnFind_Click");
}

However, how many times i keep on clicking this button, i haven't seen this debug message once in the trace.

Can someone help me?