Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在页面底部注册ClientScript_C#_Asp.net_Webforms - Fatal编程技术网

C# 如何在页面底部注册ClientScript

C# 如何在页面底部注册ClientScript,c#,asp.net,webforms,C#,Asp.net,Webforms,我正在使用Page.ClientScript.RegisterClientScriptBlock在页面上生成脚本标记。 但这会将我的脚本放在页面的顶部,我希望它在页面上的所有内容之后执行,作为html中的最后一行。 我该怎么做?我想你可以用这个页面.ClientScript.RegisterStartupScript来代替。这能回答你的问题吗?

我正在使用
Page.ClientScript.RegisterClientScriptBlock
在页面上生成脚本标记。 但这会将我的脚本放在页面的顶部,我希望它在页面上的所有内容之后执行,作为html中的最后一行。
我该怎么做?

我想你可以用这个
页面.ClientScript.RegisterStartupScript来代替。

这能回答你的问题吗?