P
Phillip Vong
Using VS2005 w/ simple aspx in VB.net
I have a simple databound textbox "LastMtgText" in a formview in the Insert
template.
All I want to do is make the default date of today when someone goes to
Insert template so they do not have to put in todays date. Here is my code,
what am I doing wrong? I know how to do this when not using Formview.
'-----This puts in the current date
Dim dtmToday As Date
dtmToday = Now.Date
Dim convDate As String
convDate = CStr(dtmToday)
Dim LastMtgLabel As Label
LastMtgLabel = FormView1.FindControl("LastMtgTextBox")
LastMtgLabel.Text = dtmToday
Gozirra - I thought I understood what you were trying to teach me about
conversion so I thought this would be easy but I can not get this to work.
Can you please build a simple form and try this? This works fine when not
in Formview.
I have a simple databound textbox "LastMtgText" in a formview in the Insert
template.
All I want to do is make the default date of today when someone goes to
Insert template so they do not have to put in todays date. Here is my code,
what am I doing wrong? I know how to do this when not using Formview.
'-----This puts in the current date
Dim dtmToday As Date
dtmToday = Now.Date
Dim convDate As String
convDate = CStr(dtmToday)
Dim LastMtgLabel As Label
LastMtgLabel = FormView1.FindControl("LastMtgTextBox")
LastMtgLabel.Text = dtmToday
Gozirra - I thought I understood what you were trying to teach me about
conversion so I thought this would be easy but I can not get this to work.
Can you please build a simple form and try this? This works fine when not
in Formview.