public override void RegisterInlineBlock(Action<TextWriter> block, object key) { var blockAsString = block.RenderToString(); string stringKey = blockAsString; if (key != null) stringKey = key.ToString(); Page.ClientScript.RegisterStartupScript(_type, stringKey, blockAsString); }
public override void RegisterInlineBlock(Action<TextWriter> block, object key) { var blockAsString = block.RenderToString(); AddToHeader(blockAsString, blockAsString); }