What is the difference between a script tag with and without a runat=server attribute
问题 What is the difference between <script runat="server"> and <script> ? 回答1: When you add runat="server" attribute the tag will become available in server side code like any other asp.net control. Then you will be able to manipulate/add c#/javascript code within the blocks directly. If you don't add the runat attribute you will be able to only have client side scripting. 回答2: The runat="server" tag tells the .NET compiler to execute the tag on the server. it can be added to any html tags which