473,399 Members | 3,656 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,399 software developers and data experts.

Confused Using VB in VS2003

I have an ASP.NET (VB) Web Application developed in VS2003. I am totally
confused on what needs to get copied to the Web Host when I make some
changes. Most of the forms are aspx pages and include a codebehind file
(e.g. myform.aspx and myform.aspx.vb) Normally I do a project rebuild and
then a Copy Project with FrontPage option and only required files and then
FTP those files. That is a lot of files. If I make a change to the VB code
in just one file (e.g. myform.aspx.vb) exactly what needs to be done to get
that change on the host without copying unchanged files?

Wayne
Apr 16 '06 #1
7 1082
Wayne,

If you only changed something in the code behind you should only
need to copy the dll to the web server.

Ken
----------------------

"Wayne Wengert" wrote:
I have an ASP.NET (VB) Web Application developed in VS2003. I am totally
confused on what needs to get copied to the Web Host when I make some
changes. Most of the forms are aspx pages and include a codebehind file
(e.g. myform.aspx and myform.aspx.vb) Normally I do a project rebuild and
then a Copy Project with FrontPage option and only required files and then
FTP those files. That is a lot of files. If I make a change to the VB code
in just one file (e.g. myform.aspx.vb) exactly what needs to be done to get
that change on the host without copying unchanged files?

Wayne

Apr 16 '06 #2
OK, I'll try that next time. When do I have to copy the myform.aspx.vb page
out there?

Wayne

"Ken Tucker [MVP]" <Ke**********@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...
Wayne,

If you only changed something in the code behind you should only
need to copy the dll to the web server.

Ken
----------------------

"Wayne Wengert" wrote:
I have an ASP.NET (VB) Web Application developed in VS2003. I am totally
confused on what needs to get copied to the Web Host when I make some
changes. Most of the forms are aspx pages and include a codebehind file
(e.g. myform.aspx and myform.aspx.vb) Normally I do a project rebuild and
then a Copy Project with FrontPage option and only required files and
then
FTP those files. That is a lot of files. If I make a change to the VB
code
in just one file (e.g. myform.aspx.vb) exactly what needs to be done to
get
that change on the host without copying unchanged files?

Wayne

Apr 16 '06 #3
Wayne,

As Ken already said, you only need your DLL to copy, (the best in a by
settings save placed directory as bin). Your .vb or .cs pages should in
normal situations never be copied to your webserver and don't have to be
there.

I hope this helps,

Cor

"Wayne Wengert" <wa***********@wengert.org> schreef in bericht
news:eP**************@TK2MSFTNGP05.phx.gbl...
OK, I'll try that next time. When do I have to copy the myform.aspx.vb
page out there?

Wayne

"Ken Tucker [MVP]" <Ke**********@discussions.microsoft.com> wrote in
message news:F5**********************************@microsof t.com...
Wayne,

If you only changed something in the code behind you should only
need to copy the dll to the web server.

Ken
----------------------

"Wayne Wengert" wrote:
I have an ASP.NET (VB) Web Application developed in VS2003. I am totally
confused on what needs to get copied to the Web Host when I make some
changes. Most of the forms are aspx pages and include a codebehind file
(e.g. myform.aspx and myform.aspx.vb) Normally I do a project rebuild
and
then a Copy Project with FrontPage option and only required files and
then
FTP those files. That is a lot of files. If I make a change to the VB
code
in just one file (e.g. myform.aspx.vb) exactly what needs to be done to
get
that change on the host without copying unchanged files?

Wayne


Apr 16 '06 #4
Thanks for the reply, but when the .vb pages are not out there, I get errors
that it can't find the .vb file?

Wayne

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uu**************@TK2MSFTNGP03.phx.gbl...
Wayne,

As Ken already said, you only need your DLL to copy, (the best in a by
settings save placed directory as bin). Your .vb or .cs pages should in
normal situations never be copied to your webserver and don't have to be
there.

I hope this helps,

Cor

"Wayne Wengert" <wa***********@wengert.org> schreef in bericht
news:eP**************@TK2MSFTNGP05.phx.gbl...
OK, I'll try that next time. When do I have to copy the myform.aspx.vb
page out there?

Wayne

"Ken Tucker [MVP]" <Ke**********@discussions.microsoft.com> wrote in
message news:F5**********************************@microsof t.com...
Wayne,

If you only changed something in the code behind you should only
need to copy the dll to the web server.

Ken
----------------------

"Wayne Wengert" wrote:

I have an ASP.NET (VB) Web Application developed in VS2003. I am
totally
confused on what needs to get copied to the Web Host when I make some
changes. Most of the forms are aspx pages and include a codebehind file
(e.g. myform.aspx and myform.aspx.vb) Normally I do a project rebuild
and
then a Copy Project with FrontPage option and only required files and
then
FTP those files. That is a lot of files. If I make a change to the VB
code
in just one file (e.g. myform.aspx.vb) exactly what needs to be done to
get
that change on the host without copying unchanged files?

Wayne



Apr 16 '06 #5
Hi Wayne,

There is a conceptual issue you need to understand, here. There are two
ways of compiling your pages :

1. Without Precompilation :
------------------------------------------
In this method, your .aspx page and your code-behind file(.vb or .cs)
reside on the web
server. When a client requests your .aspx page, ASP.NET compiles both
the .aspx and the
code-behind file, into .dll files.

In this method, your .aspx is linked to your .vb file using the "src"
attribute of the Page
directive, which points to the .vb file.

2. With Precompilation :
-----------------------------------
This is the preferred method, since you don't have to distribute your
Code-behind file to
the web server. There are also other advantages. And this is the method
that Cor and
Ken are suggesting you should use.

In this method, only your .aspx page resides on the web server
initially. You can then
compile your .vb into a .dll manually using the "vbc.exe" command line
compiler. This will
generate your code-behind .dll. Now you need to do two things :
a) Copy this .dll to the bin directory in the application folder on the
webserver.
b) Remove the "src" attribute of the Page directive in your .aspx file.
Make sure

"Inherits" points to the fully qualified class name of your Code-behind
file.
Now, when a client requests your .aspx page, ASP.NET will compile only
1 file, that is your
..aspx file, but while doing this, it will include references to the
..dll file placed in the bin
sub-directory.

So, this method is much easier for maintenance.

Hope I was able to explain it in lucid terms,

Regards,

Cerebrus.

Apr 17 '06 #6
Thank you very much for that informative response. I actually think I
understand some of what is going on here (an accomplishment for an old duck
like me!). I will save your instructions and see if I can't get better
control of my web pages.

Wayne

"Cerebrus" <zo*****@sify.com> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
Hi Wayne,

There is a conceptual issue you need to understand, here. There are two
ways of compiling your pages :

1. Without Precompilation :
------------------------------------------
In this method, your .aspx page and your code-behind file(.vb or .cs)
reside on the web
server. When a client requests your .aspx page, ASP.NET compiles both
the .aspx and the
code-behind file, into .dll files.

In this method, your .aspx is linked to your .vb file using the "src"
attribute of the Page
directive, which points to the .vb file.

2. With Precompilation :
-----------------------------------
This is the preferred method, since you don't have to distribute your
Code-behind file to
the web server. There are also other advantages. And this is the method
that Cor and
Ken are suggesting you should use.

In this method, only your .aspx page resides on the web server
initially. You can then
compile your .vb into a .dll manually using the "vbc.exe" command line
compiler. This will
generate your code-behind .dll. Now you need to do two things :
a) Copy this .dll to the bin directory in the application folder on the
webserver.
b) Remove the "src" attribute of the Page directive in your .aspx file.
Make sure

"Inherits" points to the fully qualified class name of your Code-behind
file.
Now, when a client requests your .aspx page, ASP.NET will compile only
1 file, that is your
.aspx file, but while doing this, it will include references to the
.dll file placed in the bin
sub-directory.

So, this method is much easier for maintenance.

Hope I was able to explain it in lucid terms,

Regards,

Cerebrus.

Apr 17 '06 #7
My best wishes for your endeavour. ;-)

Regards,

Cerebrus.

Apr 17 '06 #8

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

Similar topics

8
by: John E Katich | last post by:
When attempt to use the Event Wizard I get the following error message: "Add/Remove of the function impossible, because the parent class code is read only" The Project was convert from VC 6.0....
7
by: YAZ | last post by:
Hello, I have a dll which do some number crunching. Performances (execution speed) are very important in my application. I use VC6 to compile the DLL. A friend of mine told me that in Visual...
3
by: codabill | last post by:
Can someone please refer me to books, articles, websites where I can obtain information on how to set up VS2003 for team development. I am a project manager for a non-trivial military software...
7
by: tonelab | last post by:
I currently have VS2003 .net 1.1 installed with a number of 1.1 projects built in it. All of these projects create the /bin dll for deployment and have been running on remote servers that have the...
6
by: EmmanuelE | last post by:
Just installed VS2003 and tried a hello world app. Getting 404 error even when I explictly specify the start page in the url. In IIS Mgr (v 5.1), App has .aspx mapped to...
17
by: Samuel | last post by:
Hi All, I am in the process of converting a VS 2003 project to VS 2005 project (VB.NET Class Library). It gives the error in TypeOf and DirectCast statements. It was working...
0
by: zacks | last post by:
Like an idiot, I recently uninstalled VS2003. It wasn't long before I realized my mistake. I uninstalled VS2005 thinking I would need to before I re-installed VS2003. The uninstall of VS2005 went...
5
by: Tony | last post by:
Hi all, Here's the link to the issue we were seeing on our ASP.NET system when modifying, adding and deleting directories in framework 2.0....
6
by: Griff | last post by:
Hi - I have completely rebuilt my PC from scratch and it's running XPsp2 and VS2003 sp1. Sometimes when I run my ASP code (this is CLASSIC asp by the way) through the VS2003 debugger, I get 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.