Hello Cirene,
Well... it means that you can't find the real Callendar control to set the
date
View the page source to check that you are looking for the correct control
name
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
CObject reference not set to an instance of an object.
CDescription: An unhandled exception occurred during the execution of
Cthe
Ccurrent web request. Please review the stack trace for more
Cinformation
Cabout the error and where it originated in the code.
CException Details: System.NullReferenceException: Object reference
Cnot set to an instance of an object.
C>
C"Cirene" <te**@test.comwrote in message
Cnews:u2**************@TK2MSFTNGP03.phx.gbl...
C>
>After I set it it is still Nothing.
<Michael Nemtsev>; "MVP" <ne*****@msn.comwrote in message
news:3d**************************@msnews.microsof t.com...
>>Hello Cirene,
What exactly doesn't work? You can't find the control, or the date
not changes
---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high
and
we miss it, but that it is too low and we reach it" (c) Michelangelo
CModeChanging(ByVal sender As Object, ByVal e As
CSystem.Web.UI.WebControls.FormViewModeEventArgs ) Handles
CFormView1.ModeChanging
CIf e.NewMode = FormViewMode.Insert Then
CDim cal As Calendar =
CCType(Me.FormView1.Row.FindControl("calDeadline "), Calendar)
Ccal.SelectedDate = Now.Date