Thank you very much for your response.
In my user Control (fm_ex_provider_info.ascx) I have a textbox declared as:
Public txtBusinessName As New System.Web.UI.WebControls.TextBox
And related code:
Public ReadOnly Property ProvBusinessName() As String
Get
Return Me.txtBusinessName.Text
End Get
End Property
-----------------------------------------------------------------
Then in my host form (ex_provider_input.aspx) I have:
Dim ProviderForm As fm_ex_provider_info1 = DirectCast(Me.ProviderForm, fm_ex_provider_info1) [Declared in top variable section]
Dim BusinessName As String = ProviderForm.ProvBusinessName [This piece of code is in the submit button event)
-----------------------------------------------------------------
The page loads just fine, but I get an error about the object not being set to an instance of the object when I hit the sub,it button. The error appears to be caused by this line of code" "Dim BusinessName As String = ProviderForm.ProvBusinessName ".
Apparently I am missing something. If anyone has any ideas, I would be very grateful. Thank you.
Edited by sabrin514 - 29 November 2005 at 3:53pm