I know if I'm using AjaxControlToolkit I need to replace:
<asp:ScriptManager
by
<ajaxToolkit:ToolkitScriptManager
But do I need to replace ScriptManager in code behind too:
ScriptManager.RegisterStartupScript
by
ToolkitScriptManager.RegisterStartupScript
I got warning there: access to a static member of a type via a derived type
UPDATE:
okay, maybe RegisterStartupScript belongs to ScriptManager and ToolkitScriptManager derived from ScriptManager? In this case it doesn't make sense to replace it for RegisterStartupScript?