I have a custom user control.I want to add the following code at the time of activating feature in page layout.
<%@ Register Tagprefix="MyControls" Namespace="MyControl"
Assembly="MyControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=XXX" %>
<MyControls:MyUserControl runat="server"/>