I have created a web application and have a number of textboxes on a web page. I have created a new class with carries out a number of calculations and if there is no text in the box it enters 0.00 so I dont get a null exception.
Public Sub calculate_monday()
If TextBox207.Text = "" Then TextBox207.Text = "0.00"
but when I debug it i get :
Object reference not set to an instance of an object.
if the code is in the defualt class it works obviously but I am trying to do this from another class. what do I have to do.....do I reference it etc?