Web User Control og Event
- by Mcoroklo
I have a web user control, CreateQuestion.ascx, in ASP.NET. I want an event "QuestionAdded" to fire when a specific button is clicked.
I don't want to send any data, I just want to know WHEN the button is fired.
My implementation:
CreateQuestion.ascx:
public event EventHandler QuestionAdded;
protected virtual void OnQuestionAdded(EventArgs…