473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Synchronizing Code Behind

Hello,

In VS.NET 2003 when I add server controls to the web
form it sometimes adds their declarations to the code
behind and sometimes not. Is there a way to tell VS.NET
to parse the web form and synchronize it with the code
behind so I don't have to manually add the declarations?
Thanks for your help.
Nov 18 '05 #1
2 1557
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.)
Nov 18 '05 #2
Hello,

Thank you for your explanation. I will switch to
Design View from now on synchronize the two. Thanks
again!

-----Original Message-----
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 servercontrols in the ASPX page manuuly, then turn to the code-behind file, thefile doesn't synthronize with the ASPX page(the control member doestn'tappear)? 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 theDesign-view or the HTML view. If you add controls in the Design-view andthen turn to the Code-behind file, the file will have been synthronizedwith the ASPX file(the control declaraion has been added). However, if youadd a server control in the HTML-view via typing the control tags manuallyand then turn to the Code-behind file immediately. It do happens that thefile is not synthorized with ASPX file(the control member declaration isnot added). It seems a existed limit the in the IDE. If you do want toforce the IDE to make synthronism between the aspx page and its code-behindfile, you can try this:

After you add server control in the HTML-view, then, don't turn to thecode-behind file at once. You need to ture to the Design- View first, if yousee the new control appear in the Design view, you can then turn to theCode-behind file, thus, the file will have been synthronized with the ASPXpage.

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 norights.)
.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Keith Veleba | last post by:
Hello to all fellow c.l.p'ers! Long-time listener, first-time caller. Background: I'm working on a project where I have to do some serious multithreading. I've worked up a decorator in Python...
0
by: SQLServer007 | last post by:
25 more days until the "get it free" promotion runs out for xSQL Object (you can get it from http://www.x-sql.com) Here are just some of the great features packed in the product: - Compare SQL...
1
by: Phil Matish, MCSE | last post by:
I have an Access database that I use frequently. Often, I take it to a home PC, or laptop to work on at night. The next day, I overwrite the old one with the one I have been working on. The...
1
by: Jeff Smith | last post by:
Hi This is a repost due to no responses Here's a problem I've encountered with Access 2003 which has got me to redesign how I get the row source in a second combo box using the first combo...
2
by: Christopher D. Wiederspan | last post by:
We are getting ready to move an ASP.NET application off of a single development machine and onto a "webfarm". Basically our webfarm is a bunch of identical servers with the load-balancing provided...
4
by: Veggis | last post by:
Hi We have this access application - which we use to register stuff into. Most of the time we're online, and that's all right, but now we need be able to register stuff offline, and then it...
6
by: aca04pds | last post by:
Does anyone have any simple ideas (or complicated if it's the only idea) how to create a program that can synchronize file directories/ repositories? Ideally files should be able to be added,...
7
by: iwasinnihon | last post by:
I am trying to teach myself more about synchronizing threads. I took the following code from a book and have altered it to read one more file (the program counts in the words in multiple files). ...
8
by: colin | last post by:
Hi, this probaly isnt the most relevant place to ask this, but Im using a windows forms in c# timer to process user input and invalidate a window if its changed. Im having problems in that the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.