I am new to ASP.NET. Started new website with VB, but ran into limitation of FormView/Linqdatasource with null dates for backend DB. apparently a problem assign a null to a datatime in VB code........... but not the problems I'm having here.
So I recreated the site in C#, my first C# project, but I'm having problems with event routines in the codebehind editor. I'm trying to right a FormView Updating Event to head off the above problem mention, But I have a couple of issues
-
the event declaration/creation inside the code is not automatic like in VB - in the left side dropdown in VB, all the controls are listed out - in C#, only the main ASPX page is listed - and on the right dropdown in VB all the event are listed and can be created select the control in the first dropdown, then selecting the event in the secondl, but in C#, all the items are grayed out.
-
if I manually create the event routine, my intellisense doesn't work the way I am expecting when looking for properties/methods for the FormViewPageEventArgs e
protected void FormPersonDetail_PageIndexChanging(object sender, FormViewPageEventArgs e)
{ }
but when I try to use the e.NewValues - the NewValues is not present, only a small list is there including cancel,Equals,GetHashCode,GetType,NewPageIndex,ToString
Hence, I can program the event properly.
ANY HELP WOULD BE APPRECIATED - I love ASP.net, but am very frustrated as a begining user,
Thanks