T
Timmins
I have a date in a frame/page that i want to pass to another page. I can succefully pass a static value, i just can't pass a value from a text box.
I tried to make everything public. I believe that Me. may only refer to the page that is orginating the action. But how do I pass the text box. Can we assume since I can pass the static value, that the issue is how I grab the textbox value
the Error i get is
Object reference not set to an instance of an object
Here's the Property that is giving me trouble:
Protected WithEvents MsgLbl As System.Web.UI.WebControls.Label
Public WithEvents ToDate As System.Web.UI.WebControls.TextBox
Public WithEvents FromDate As System.Web.UI.WebControls.TextBox
Public DatePublicVar As String
Public ReadOnly Property FromDateTxt() As String
Get
'DatePublicVar = "12/12/2004" ' This Works
DatePublicVar = Me.FromDate.Text 'this doesn't
Return DatePublicVar
End Get
End Property
Thanks, I'm an old vb guy who still hasn't found out how to do some obvious tasks
I tried to make everything public. I believe that Me. may only refer to the page that is orginating the action. But how do I pass the text box. Can we assume since I can pass the static value, that the issue is how I grab the textbox value
the Error i get is
Object reference not set to an instance of an object
Here's the Property that is giving me trouble:
Protected WithEvents MsgLbl As System.Web.UI.WebControls.Label
Public WithEvents ToDate As System.Web.UI.WebControls.TextBox
Public WithEvents FromDate As System.Web.UI.WebControls.TextBox
Public DatePublicVar As String
Public ReadOnly Property FromDateTxt() As String
Get
'DatePublicVar = "12/12/2004" ' This Works
DatePublicVar = Me.FromDate.Text 'this doesn't
Return DatePublicVar
End Get
End Property
Thanks, I'm an old vb guy who still hasn't found out how to do some obvious tasks