| |||||||||||
Code Declaration BlocksASP.NET Syntax ASP.NET Page Syntax Defines member variables and methods compiled in the dynamically generated Page or UserControl classes that represent the ASP.NET page and user control, respectively. <script runat="server" language="codelanguage" src="pathname"> Code goes here... </script> Attributes
RemarksCode declaration blocks are defined using <script> tags that contain a runat attribute value set to "server". The <script> element can optionally use a language attribute to specify the language of its inner code. If none is specified, ASP.NET defaults to the language configured for the base page or user control ( controlled using the @ Page and @ Control directives ). You can also use the <script> element to specify an external script file by using the src attribute. When you define the src attribute, all content between the opening and closing tags of the <script> element is ignored. In this case, use a closing slash at the end of the opening tag. For example, Syntax ExampleThe below code snippet demonstrates how you can define event-handling logic for the
See Also |
| ||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme