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);
        }
예제 #2
0
 public override void RegisterInlineBlock(Action<TextWriter> block, object key)
 {
     var blockAsString = block.RenderToString();
     AddToHeader(blockAsString, blockAsString);
 }