Difference between Response.Write() and ClientScript.RegisterStartupScript()?

后端 未结 4 946
悲&欢浪女
悲&欢浪女 2020-12-17 05:52

What is the difference between Response.Write() and ClientScript.RegisterStartupScript() Thank you.

4条回答
  •  心在旅途
    2020-12-17 06:33

    Response.Write

    The Write method writes a specified string to the current HTTP output.

    ClientScriptManager.RegisterStartupScript

    Registers the startup script with the Page object.

提交回复
热议问题