Page 123 - Programming VB.NET
P. 123

Code With Vb .Net                             117



                       Protected Sub btnsubmit_Click(ByVal sender As
                       Object, ByVal e As System.EventArgs) Handles
                       btnsubmit.Click
                               Const rate As Double = 100

                               txtcm.Text = txtmeter.Text * rate

                       End Sub






               11.3 Validation Controls

                     Validation controls are used to validate the data of

                     an input control or a validator is a control that
                     checks one input control for a specific type of error

                     condition and displays a description of that
                     problem. These are the following validation
                     controls as shown in Table11.3.
   118   119   120   121   122   123   124   125   126   127   128