CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: Date Entered: 11/17/2006 1:00:45 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 6 Views: 64 Favorited: 0 Favorite
7 Items, 1 Pages 1 |< << Go >> >|
"ljp007" <>
NewsGroup User
VS 2005 App Code Compilation11/17/2006 1:00:45 AM

0

I'm just getting started with VS 2005. One of the questions I have is regarding the App Code folder. I write my VB class code and drop the .vb file in the App Code folder. Then in my Webform .asp page I can access my classes. My question is how does the webform know about the classes in the App Code folder? I thought the class code in the App Code folder would get compiled into an assembly (.dll) and this would be placed in the bin folder. However, I have not created a bin folder and no .dll file has been created by VS. Is there an assembly being built behind the scenes which contains references to the classes I create in the App Code folder? Which brings me to my next question. If I have a .dll file containing classes, do I simply need to create the bin folder, add the .dll to the bin and then I can directly reference the classes in my .aspx page?

 Thanks for any clarification on the App Code, bin, and referencing classes questions which seem to always be lingering.

-lance

"vcsjones" <>
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 5:57:14 AM

0

ASP.NET 2.0 does dynamic compilation. Any code in the App_Code folder is compiled into the App_Code.dll assembly. This Assembly is created during the Application Startup.

ljp007:
Is there an assembly being built behind the scenes which contains references to the classes I create in the App Code folder

That is pretty much it.

As far as using already existing Assemblies, yes you create the bin folder and put your assemblies in there, then you can reference them.


Cheers,
       Kevin Jones


"ljp007" <>
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 6:36:35 PM

0

So if I work on a .VB file in the App code folder and I modify it locally, then want to make the changes availabe on my remote server, do I only need to FTP the .VB file and not worry about moving around the App_Code.dll assembly?

 Thanks
 

"vcsjones" <>
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 7:58:45 PM

0

That is correct. When a file changes in the App_Code folder, the assembly is automatically recompiled. No need to worry about compilation.
Cheers,
       Kevin Jones


"nolazabal" <>
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 9:18:13 PM

0

Do you have to distribute any vb codebehind for my aspx pages? With the project as well?

"Mikhail Arkhip
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 9:27:22 PM

0

Yes, you need to publish vb files along with aspx if you want server to take care of the compilation.
Thanks

------------------------------------------------------------

This posting is provided "AS IS" with no warranties, and confers no rights.
"nolazabal" <>
NewsGroup User
Re: VS 2005 App Code Compilation11/17/2006 9:54:42 PM

0

ty very much for the response.

btw. great job you guys responding vey fast to forum questions Yes 

 

7 Items, 1 Pages 1 |< << Go >> >|


Free Download:













com+ enterprise services

trivia game help!

connect a textbox with an access database field

http error 404

2 ascx 1 ascx.vb

using asp.net to send and get values to / fro html

compiling projects

databinding working one refresh too late.

"integrated windows authentication is not enabled."

my simple webcontrol interface doesn't work

request for guide

bulk insert with gridview

datatable question

datetime error

change a tiff orientation from landscape to portrait

web preformance suggestions. please help

asp.net how to search through dropdown list box

cookie question

accessing controls from another class

probably a dumb question

listbox

variable scope in aspx page problem

tabs

cms suggestions?

system.net.mail default smtp host

function problem

safari script initialization

using rfid

exsiting .net framework

disscussion board template

username/password prompt when opening powerpoint

1.1: performance or: what's going on?

directly writing to the .aspx file design-time

edit css like in ms word

assigning some rows in the datareader to the reader control.

table with menu object in my aspx works fine in ie but not firefox

extracting text from a textbox control

autofind and select a variable when key in in text box

record position ??

asp.net vrs net framework sdk

text controls, when they change update the total control

asp text input

datagrid problem

how to test?

using stringbuilder for system.net.mail

can i reuse ascx in many webs?

word versions compatibility with c#.net 2005

doing a website builder

regular expression

showing message box

   
  Privacy | Contact Us
All Times Are GMT