473,796 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Efficient site maintenance with VS.NET

Hello,

Can anyone give some tips to efficiently update a remote project ?
I prefer to keep my projects locally, compile as release and then copy
everything it to the remote server.

What is bugging me is that when I have to change one line of code (locally,
to have an identical copy), I have to recompile it and upload the whole
thing again to the webserver.
Next I tried opening the remote solution file to change and compile on the
server, but that didn't seem to work. Furthermore if that worked, it would
outdate the local copy I have on my own computer, so that's not an efficient
method either.

I hope you're not laughing at my ignorance right now, so any tips would be
most appreciated :)

Beren

Nov 19 '05 #1
4 1076
> What is bugging me is that when I have to change one line of code
(locally, to have an identical copy), I have to recompile it and upload
the whole thing again to the webserver.
Sounds like you code and project organization could use some work.
Typically, one would have several projects with business classes, etc. in
them. If you change one line of code, you should only have to replace 1 dll.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Beren" <be***@angband. me> wrote in message
news:CH******** ************@ph obos.telenet-ops.be... Hello,

Can anyone give some tips to efficiently update a remote project ?
I prefer to keep my projects locally, compile as release and then copy
everything it to the remote server.

What is bugging me is that when I have to change one line of code
(locally, to have an identical copy), I have to recompile it and upload
the whole thing again to the webserver.
Next I tried opening the remote solution file to change and compile on the
server, but that didn't seem to work. Furthermore if that worked, it would
outdate the local copy I have on my own computer, so that's not an
efficient method either.

I hope you're not laughing at my ignorance right now, so any tips would be
most appreciated :)

Beren

Nov 19 '05 #2
Doh ! Thanks for your help.
So in fact, every web user control should be a dll for instance ?

Beren

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:eq******** ******@TK2MSFTN GP14.phx.gbl...
What is bugging me is that when I have to change one line of code
(locally, to have an identical copy), I have to recompile it and upload
the whole thing again to the webserver.


Sounds like you code and project organization could use some work.
Typically, one would have several projects with business classes, etc. in
them. If you change one line of code, you should only have to replace 1
dll.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Beren" <be***@angband. me> wrote in message
news:CH******** ************@ph obos.telenet-ops.be...
Hello,

Can anyone give some tips to efficiently update a remote project ?
I prefer to keep my projects locally, compile as release and then copy
everything it to the remote server.

What is bugging me is that when I have to change one line of code
(locally, to have an identical copy), I have to recompile it and upload
the whole thing again to the webserver.
Next I tried opening the remote solution file to change and compile on
the server, but that didn't seem to work. Furthermore if that worked, it
would outdate the local copy I have on my own computer, so that's not an
efficient method either.

I hope you're not laughing at my ignorance right now, so any tips would
be most appreciated :)

Beren


Nov 19 '05 #3
> So in fact, every web user control should be a dll for instance ?

No, not at all. First, I have to wonder what exactly you mean by "web user
control." If you're referring to ASMX's, well, they also have a template
file. If you're talking about controls that draw their own HTML
(fully-compiled), you will want to group them by functionality. Think of
DLLs and NameSpaces in the same way you think of folders in your OS. The
purpose of having many folders and sub-folders is purely organizational. It
makes it easier to find individual files if you can figure out what folder
they should logcally be in. You put documents in your "My Documents" folder,
Program files and installations in "Program Files," etc. Your NameSpaces and
DLLs should be organized logically as well.

For example, we have a Data Class that is in its own DLL. It contains all
the methods and properties we use to access databases. It is built
generically enough to be used in multiple application solutions. Therefore,
it is its own project, and its own DLL. And we use it in many different
apps.

We have a class library called "TiffManage r" which has several classes in
it. The base class, "Tiff" is a generic Tiff-parsing class. In the same DLL,
we also have a "GeoTiff" class in the same NameSpace, that is a derived
class (inheriteed from Tiff) for parsing GeoTiffs. Both of those classes
logically belong in the same DLL.

We also have a DLL of custom Web Controls. These are all fully-compiled
controls that render their own HTML (no template). These Controls are used
in our ASP.Net apps, but they are in their own DLL for re-usability (we have
used some of them in multiple ASP.Net apps). It also makes them easier to
find.

I hope you get the idea.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Beren" <be***@angband. me> wrote in message
news:g4******** ************@ph obos.telenet-ops.be...
Doh ! Thanks for your help.
So in fact, every web user control should be a dll for instance ?

Beren

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:eq******** ******@TK2MSFTN GP14.phx.gbl...
What is bugging me is that when I have to change one line of code
(locally, to have an identical copy), I have to recompile it and upload
the whole thing again to the webserver.


Sounds like you code and project organization could use some work.
Typically, one would have several projects with business classes, etc. in
them. If you change one line of code, you should only have to replace 1
dll.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Beren" <be***@angband. me> wrote in message
news:CH******** ************@ph obos.telenet-ops.be...
Hello,

Can anyone give some tips to efficiently update a remote project ?
I prefer to keep my projects locally, compile as release and then copy
everything it to the remote server.

What is bugging me is that when I have to change one line of code
(locally, to have an identical copy), I have to recompile it and upload
the whole thing again to the webserver.
Next I tried opening the remote solution file to change and compile on
the server, but that didn't seem to work. Furthermore if that worked, it
would outdate the local copy I have on my own computer, so that's not an
efficient method either.

I hope you're not laughing at my ignorance right now, so any tips would
be most appreciated :)

Beren



Nov 19 '05 #4
I've been reading a bit and picked up the courage to experiment with
different projects in a solution and it's alot clearer now.
It seems that I've been flying in code the ASP-way too fast instead of
taking the time to analyse what's going on with all the stuff I create.
I understand this philosophy of organizing things better, thanks alot for
your time.

But - apart from creating the deeper tiered dll's or custom web controls -
it seems that splitting similar logical groups from the aspx-and ascx
codebehind files of one webapp project is impossible without creating
multiple web application projects ( which is ofcourse not the intention ).
Lets say I have the following :

a) Webproject consisting of :
- 2 admin webpages + 4 specific web user controls (ascx) and their
codebehind classes
- 3 customer pages + 5 ascx's and their cb's

b) a business class project
c) data access project

As it is, I would end up with 3 projects, thus 3 assemblies I can maintain
independently.
But I wish to create 2 projects from my Webproject ( 1 for the admin
codebehinds, 1 for the customer section )

Hmm maybe it just came to me, but what if I just pluck these codebehind
files out of the Webproject, and put em in a fourth & fifth project,
respectively "adminUIClasses " and "customerUIClas sesCBs" ?
As long as I used the same namespace as in for these 2 new projects, there
shouldn't be a problem...

....Or am I completely messing up again ? :)

Thanks,

Beren
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:e%******** ********@TK2MSF TNGP12.phx.gbl. ..
So in fact, every web user control should be a dll for instance ?


No, not at all. First, I have to wonder what exactly you mean by "web user
control." If you're referring to ASMX's, well, they also have a template
file. If you're talking about controls that draw their own HTML
(fully-compiled), you will want to group them by functionality. Think of
DLLs and NameSpaces in the same way you think of folders in your OS. The
purpose of having many folders and sub-folders is purely organizational.
It makes it easier to find individual files if you can figure out what
folder they should logcally be in. You put documents in your "My
Documents" folder, Program files and installations in "Program Files,"
etc. Your NameSpaces and DLLs should be organized logically as well.

For example, we have a Data Class that is in its own DLL. It contains all
the methods and properties we use to access databases. It is built
generically enough to be used in multiple application solutions.
Therefore, it is its own project, and its own DLL. And we use it in many
different apps.

We have a class library called "TiffManage r" which has several classes in
it. The base class, "Tiff" is a generic Tiff-parsing class. In the same
DLL, we also have a "GeoTiff" class in the same NameSpace, that is a
derived class (inheriteed from Tiff) for parsing GeoTiffs. Both of those
classes logically belong in the same DLL.

We also have a DLL of custom Web Controls. These are all fully-compiled
controls that render their own HTML (no template). These Controls are used
in our ASP.Net apps, but they are in their own DLL for re-usability (we
have used some of them in multiple ASP.Net apps). It also makes them
easier to find.

I hope you get the idea.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Beren" <be***@angband. me> wrote in message
news:g4******** ************@ph obos.telenet-ops.be...
Doh ! Thanks for your help.
So in fact, every web user control should be a dll for instance ?

Beren

"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:eq******** ******@TK2MSFTN GP14.phx.gbl...
What is bugging me is that when I have to change one line of code
(locally, to have an identical copy), I have to recompile it and upload
the whole thing again to the webserver.

Sounds like you code and project organization could use some work.
Typically, one would have several projects with business classes, etc.
in them. If you change one line of code, you should only have to replace
1 dll.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"Beren" <be***@angband. me> wrote in message
news:CH******** ************@ph obos.telenet-ops.be...
Hello,

Can anyone give some tips to efficiently update a remote project ?
I prefer to keep my projects locally, compile as release and then copy
everything it to the remote server.

What is bugging me is that when I have to change one line of code
(locally, to have an identical copy), I have to recompile it and upload
the whole thing again to the webserver.
Next I tried opening the remote solution file to change and compile on
the server, but that didn't seem to work. Furthermore if that worked,
it would outdate the local copy I have on my own computer, so that's
not an efficient method either.

I hope you're not laughing at my ignorance right now, so any tips would
be most appreciated :)

Beren




Nov 19 '05 #5

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

Similar topics

28
3093
by: Me | last post by:
I would like to redesign my existing site into php using classes. I am not the most experienced developer with PHP, and would like to know if anyone can give me some input on a starting point for a class library. Basically, the idea is to have as much of the content served dynamically, using a mySQL database. My catalog site has grown to over 1,100 pages, and is continuing to grow. It's getting ridiculous to keep performing manual...
8
3723
by: Bruce Duncan | last post by:
I have been starting to use Javascript a lot lately and I wanted to check with the "group" to get your thoughts on code efficiency. First, is there a good site/book that talks about good and bad ways to code. The reason I ask is because I was just thinking about the following...which is better and/or why? document.forms.elements.value or document.myform.txtname.value
0
1318
by: gabedog | last post by:
What would be a good (and safe) way to enable/disable a web site in a web farm that needs to come down for maintenance? Periodically, we have db folks that run db scripts. I'd like to put a back door page with a login that would allow me to remotely enable and disable the site. The site is in a web farm. The site has a previously posted message to users when the site will go down. How can this be done safely and efficiently in a web farm...
19
2544
by: Marco | last post by:
FYI: Guidelines for writing efficient C/C++ code http://www.embedded.com/showArticle.jhtml?articleID=184417272 any comments?
20
4289
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black blob) ... all the pages were created in Notepad over the last
35
1807
by: spekyuman | last post by:
Pointer and reference arguments provide C++ programmers with the ability to modify objects. What is more efficient, passing arguments via pointer or reference? Avoid the stereotypical urge of debating effective coding style. Instead, think of particular scenarios: passing a 512MB object to function. Think behind the scenes, from the stack and heap to the physical linking and build of the program.
2
1078
by: bdude | last post by:
Hey, I'm new to python and am looking for the most efficient way to see if the contents of a variable is equal to one of many options. Cheers, Bryce R
4
3366
by: Mike Gleason jr Couturier | last post by:
Hi, What's a clean way to redirect users on an information page while doing site maintenance... Can we do it with urlMappings !? (wildcard "*"?) Thanks
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10459
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10237
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10187
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10018
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5578
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.