.NET Daily

The target “ControlID” for the callback could not be found or did not implement ICallbackEventHandler

Introduction

Darius

Darius

Darius Dumitrescu is a creative Senior CMS Consultant with in depth .NET knowledge, focused on Web Development and Architecture Design.


LATEST POSTS

My View of a JIRA Workflow for Web Development 17th April, 2018

How To Solve: SQL Server detected a logical consistency-based I/O error: invalid protection option. 19th March, 2018

Common .NET Exceptions

The target “ControlID” for the callback could not be found or did not implement ICallbackEventHandler

Posted on .

Error: The target “ControlID” for the callback could not be found or did not implement ICallbackEventHandler.

Scenario 1: You try to dynamically add web controls to a ContentPlaceholder or Panel and on a postback of the page caused by triggering an event from the web control, you get the error.

Cause of Scenario 1: When the event is fired, the generated web control that fired the event is no longer on the page.

Resolution of Scenario 1: Make sure you add the dynamically generated web controls on every page load. Ex: Generate controls on !Page.IsPostBack and Page.IsPostBack cases.

 

Darius

Darius

Darius Dumitrescu is a creative Senior CMS Consultant with in depth .NET knowledge, focused on Web Development and Architecture Design.

There are no comments.

View Comments (0) ...
Navigation