Web Forms - ArrayList object


  Translation results:

Web Forms is one of three programming patterns for creating ASP.NET websites and web applications.

The other two programming patterns are Web Pages and MVC (Model View Controller Model-View-Controller).

Web Forms is the oldest ASP.NET programming model and is an event-driven web page that integrates HTML, server controls, and server code.

Web Forms are compiled and executed on the server, and the server generates HTML to display as a web page.

Web Forms - ArrayList objectsyntax

An ArrayList object is a collection of items that contains a single data value.

Web Forms - ArrayList objectexample

<script runat="server">
Sub Page_Load
if Not Page.IsPostBack then
dim mycountries=New ArrayList
mycountries.Add("Norway")
mycountries.Add("Sweden")
mycountries.Add("France")
mycountries.Add("Italy")
end if
end sub
</script>

Home

Videos

Q&A