Hi Mark Fox,
Thank you for using Microsoft Newsgroup service. Based on your description,
your problem is that you found sometimes when you add some asp.net server
controls in the ASPX page manuuly, then turn to the code-behind file, the
file doesn't synthronize with the ASPX page(the control member doestn't
appear)? Please correct me if I misunderstanding your problem.
I've tried some tests on my side and here is what I found:
In VS.NET, when you edit the ASPX, you may edit it in either the
Design-view or the HTML view. If you add controls in the Design-view and
then turn to the Code-behind file, the file will have been synthronized
with the ASPX file(the control declaraion has been added). However, if you
add a server control in the HTML-view via typing the control tags manually
and then turn to the Code-behind file immediately. It do happens that the
file is not synthorized with ASPX file(the control member declaration is
not added). It seems a existed limit the in the IDE. If you do want to
force the IDE to make synthronism between the aspx page and its code-behind
file, you can try this:
After you add server control in the HTML-view, then, don't turn to the
code-behind file at once. You need to ture to the Design-View first, if you
see the new control appear in the Design view, you can then turn to the
Code-behind file, thus, the file will have been synthronized with the ASPX
page.
Please try out the preceding suggestion to see whether it helps.
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)