<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="Calculator" %>
Untitled Page
File: test.aspx.vb
Partial Class Calculator
Inherits System.Web.UI.Page
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim h As Integer = height.Text
Dim w As Integer = weight.Text
Dim result As Double
result = w / h
results.Text = "value is " & result
End Sub
End Class