"VB Master-Details Insert" QuickStart sample should work for empty table.

I've used VB Master-Details Insert QuickStart sample in my application.It works relatively good(if ignore System.InvalidOperationException: ObjectDataSource '...' could not find a non-generic method 'Update' that has parameters error).
However to create a new record,you need to have DetailsView visible. However if the GridView is empty, DetailsView is not visible and user is uable to create the first record.

I've added code to show DetailsView in DefaultMode="Insert" if no data was selected in the list

        Private Sub odsGoogleAPIKeys_Selected(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ObjectDataSourceStatusEventArgs) Handles odsGoogleAPIKeys.Selected

            'from http://www.thescripts.com/forum/post1823472-2.html

            Dim dt As DataTable = e.ReturnValue 

            Dim count As Integer = dt.Rows.Count

            'If (e.AffectedRows > 0) Then 'NOT working, returns -1 '/from    http://forums.asp.net/ShowPost.aspx?PostID=1539233

            If (count = 0) Then

                DetailsView1.Visible = True

                DetailsView1.DefaultMode = DetailsViewMode.Insert

            End If

        End Sub

Alternatively it was possible to add a link "Add a new record",similar to what exist on a sampe GridViewMasterDetailsInsertPage. to show DetailsView in DefaultMode="Insert".

Why we are getting ObjectDataSource: could not find a non-generic method 'Update'.

I've hit the same problem again. I've already wrote 2 posts  about the error "Exception Details: System.InvalidOperationException: ObjectDataSource 'ods' could not find a non-generic method 'Update' that has parameters: ...." ( Editable GridView with ObjectDatasource and Update method parameters. and Some workaround for ObjectDataSource: could not find a non-generic method '...' .) And these posts are the most popular in my blog according to views statistics. Not because they are very useful - just because topic is very hot - a lot of people experience the same problem.

I've read again Brady Gaster's detailed post and understood, that his sample very similar to mine. I also have table with integer IDENTITY primary key and 2 nvarchar columns. Ive used DataAdapter wizard to generate insert/update/delete methods without generating Stored Procedures and without support for optimistic cuncurrency. And I am using DetailsView instead of editable GridView.

I believe that the root of the problem is in the wrong assumption which parameters should have default Update method.
Just follow Brady's example the function is
Update(String Firstname, String Lastname, int32 Original_PersonId, int32 PersonId)  

How often developer needs to update IDENTITY PRIMARY KEY? If not, why we need the last parameter? If the generated Update will have just 3 parameters(Firstname, Lastname,  Original_PersonId),GridView and DetailView will work as expected.

I've  raised suggestion to MS "Generated default Update method in DataTableAdapter in a typed DataSet  shouuld not update primary key". Please rate/validate it.

UPDATE: Hurray! Posted by Microsoft on 5/05/2007: "We have fixed the issue with an additional update function.
The fix will be available in the next VS release."
 

Overflow error when opening form with MSCal.ocx in Access 2002

Our Access XP application uses calendar control(MSCAL.OCX).
It works fine on most machines, however some sites reported "Overflow" error(6) when they tried to open a form with a calendar.
It's possibly related to problems, described in the articles http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b236529 or http://support.microsoft.com/default.aspx?scid=kb;en-us;Q311219

Our support team managed to workaround the problem by manually copy expected version of mscal.ocx instead of wrong one.

Compile DVR-MS Editor in .Net 2.0

I've downloaded (from  Fun with DVR-MS article on MSDN) and rebuild DVR-MS Editor in VS 2005. It works great.
The only issue in migrating is to resolve ambiguous references and explicitely specify namespace for  ProgressChangedEventArgs and ProgressChangedEventHandler as 

Toub.MediaCenter.Dvrms.Conversion.ProgressChangedEventArgs and Toub.MediaCenter.Dvrms.Conversion.ProgressChangedEventHandler

I also noticed that a link to extended version of tools is available from DVR-MS: Adventures in Closed Captioning article.

«March»
SunMonTueWedThuFriSat
25262728123
45678910
11121314151617
18192021222324
25262728293031
1234567