Master Pages Control ID Naming in Content Pages Introduction
All ASP.NET server controls include an ID property that uniquely identifies the control and is the means by which the control is programmatically accessed in the code-behind class. Similarly, the elements in an HTML document may include an id attribute that uniquely identifies the element; these id values are often used in client-side script to programmatically reference a particular HTML element. Given this, you may assume that when an ASP.NET server control is rendered into HTML, its ID value is used as the id value of the rendered HTML element. This is not necessarily the case because in certain circumstances a single control with a single ID value may appear multiple times in the rendered markup. Consider a GridView control that includes a TemplateField with a Label Web control with an ID value of ProductName. When the GridView is bound to its data source at runtime, this Label is repeated once for every GridView row. Each rendered Label needs a unique id value.
Read more
VBScript Tutorial
- VBScript is a script version of visual basic supported by Internet Explore 3.0 and above. VB Script code is interpreted as an script by the browser.
- VBScript uses Visual Basic terms, for example, declaring a variable, writing sub, or function in VB Script is similar to Visual Basic.
- But Visual Basic is programming language for applications; while VB Script is a small script version coded with HTML or ASP documents.
- With VB Script, you can make your web site dynamic and interactive.
- VBScript is particularly valuable when used with Microsoft Web servers to create Active Server Pages (ASP) - a technology that
allows a server-side script to create dynamic content that is sent to the client’s browser.
Read more