W
Wee Bubba
the following event handler checks to see if any parent control has
attached to the event 'SearchItemSelect'. i use it for event bubbling
whenever one of my search items has been selected and at the moment i
am calling this from a repeater's ItemCommand event handler:
protected void OnSearchItemSelect(EventArgs e)
{
if (SearchItemSelect != null)
{
SearchItemSelect (this, e);
}
}
i now want to call this from within a different function, NOT an event
handler. basically if the user's search returns only one hit I don't
want to display a repeater I just want to bubble an event up to the
mother page straight away. i tried this:
OnSearchItemSelect();
but i get the error message "No overload for method
'OnSearchItemSelect' takes '0' arguments. i realise that ive got to
pass it a variable of type 'e'. But what do I pass it as I am not
calling it from within a repeater's event handler anymore but just
from a general method? how can i overload my event?
attached to the event 'SearchItemSelect'. i use it for event bubbling
whenever one of my search items has been selected and at the moment i
am calling this from a repeater's ItemCommand event handler:
protected void OnSearchItemSelect(EventArgs e)
{
if (SearchItemSelect != null)
{
SearchItemSelect (this, e);
}
}
i now want to call this from within a different function, NOT an event
handler. basically if the user's search returns only one hit I don't
want to display a repeater I just want to bubble an event up to the
mother page straight away. i tried this:
OnSearchItemSelect();
but i get the error message "No overload for method
'OnSearchItemSelect' takes '0' arguments. i realise that ive got to
pass it a variable of type 'e'. But what do I pass it as I am not
calling it from within a repeater's event handler anymore but just
from a general method? how can i overload my event?