This code is part of an ASP.NET Web Forms page. It defines a class named _Default
that inherits from System.Web.UI.Page
, which means it controls the behavior of the web page.
_Default_Load
runs when the page is first loaded. It sets the value of a text input (with ID Text1
) to "123...."
.
Button1_ServerClick
runs when a button (with ID Button1
) is clicked. It changes the value of the same text input to "123456......"
.
This example tells how server-side events in ASP.NET can dynamically update form elements using VB.NET. Please click the code link to view how the code is working. Click here to view code demo