I want to have 2 selectionchanged events,
like this
protected override void xpathList_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
//my code
}
private void xpathList_SelectionChanged(object sender, SelectionChangedEventsArgs e)
{
//my code
}
it gives the following error: Type 'TestApp.MainPage' already defines a member called 'xpathList_SelectionChanged' with the same parameter type.
How can I solve this?
You can’t create to identical method with same signature.
If you want to handle one event for one control by two different methods, you must use such code:
and remove event handler declaration from markup.
How to: Create Event Handlers in ASP.NET Web Pages