How to Add script codes before the </body> tag ASP.NET

后端 未结 3 1929
遥遥无期
遥遥无期 2021-01-27 02:17

Heres the problem,

In Masterpage, the google analytics code were pasted before the end of body tag.

In ASPX page, I need to generate a script (goo

3条回答
  •  借酒劲吻你
    2021-01-27 03:15

    An inelegant but simple approach, if you're able to avoid using ClientScript, would be to just stick a literal in the page where you want your script to be rendered and put the script in there from your codebehind (i.e. myLiteral.Text = "client script";).

提交回复
热议问题