Thanks for this. You are correct, the files are dirty.
The pages in questions contains a datagrid in a table.
Each time the page is viewed in the designer even when
Checked In the page is modified my Visual Studio (the *
appears in the page tab). Hence the reason for Visual
Source Safe to prompt for checkout.
I did have "Allow checked in items to be edited" in an
attempt to stop Visual Studio from trying to check out the
file.
I guess this leaves two questions
1) Why does Visual Studio modify pages with HTML Tables
containing Datagrids automatically when the viewed in
design mode?
2) When Visual Studio attempts to check out the file
because of the modification, why doesn't it check out the
complete page (aspx, aspx.vb & aspx.resx), it only checks
out the aspx file. When we try to undo checkout, it
prompts to check out the rest of the files. This
seriously limits team development.
Your suggestion to allow multiple checkouts would solve
this problem to some extent, but doing team development
across remote sites, we do not what two developers working
on the same file.
Thanks in advance.
Hi,
> 1) Why does Visual Studio modify pages with HTML Tables
> containing Datagrids automatically when the viewed in design mode?
This might be a bug in the HTML editor if it dirty the file just by viewing
it.
I tried reproducing this, but since I'm not much of a web developper I
couldn't repro.
Could you walk me through simple step-by-step instructions so I can raid a
bug against the editor?
> 2) When Visual Studio attempts to check out the file because of the
modification, why doesn't it check out the
> complete page (aspx, aspx.vb & aspx.resx), it only checks out the aspx
file.
How did you determined it only checks out the aspx file and not all 3 of
them? By looking which files are displayed in the Checkout dialog that pops
up or by actually veryfing the files in VSS database (for the last one you
could also turn on ShowAllFiles in SolutionExplorer)?
The aspx.vb and .resx files are considered "special files" for the aspx
files. The scci code try as much as possible to hide them from the user's
view, and to display in the UI only the "master" aspx file.
If indeed only the aspx file is checked out, then it is an editor bug.
Basically, before starting to edit the file, the editor should call the
IVsSccQueryEditQuerSave->QueryEdit() function, passing in the filenames he's
about to edit.
The editor is supposed to call us with all the files it intends to modify
(aspx, aspx.vb, aspx.resx).
> When we try to undo checkout, it prompts to check out the rest of the
files.
> This seriously limits team development.
From this it seems that indeed you have only the aspx file cheked out.
Before undo checkout, the scci code wants to save the file. It seems that on
save the editor wants to save all 3 files, so now it calls QuerySave()
passing in all 3 filenames... It should have called from the beginning
QueryEdit() for all 3 filenames...

Signature
Alin Constantin
[This posting is provided "AS IS" with no warranties, and confers no
rights.]
> Thanks for this. You are correct, the files are dirty.
> The pages in questions contains a datagrid in a table.
[quoted text clipped - 82 lines]
> >
> >.