Showing posts with label brand. Show all posts
Showing posts with label brand. Show all posts

Monday, March 26, 2012

newbie aspx.vb file question

I am brand new at building asp.net web sites. I am going through a site now that has some code behind links to aspx.vb files. I realize these files are compiled into dlls and used that way. But I am trying to find the aspx.vb files so I can review the actual code. Where are these files normally kept?

Thank you, in advance.

Jim

Hey Jim,

The *.vb files should be kept in the same directory as their corresponding *.aspx file. If the *.vb files don't exist in the same directory as the *.aspx files it is because a) the web site was pre-compiled and the code behind files are now packaged in a DLL as you mentioned or b) the code behind is inline in the *.aspx files (the code behind files do not have to be separated out into a separate file, they can be in the *.aspx file in a <script> block.)

Quick reference:

*.aspx files: Presentation Layer (HTML + ASP.NET controls)

*.vb or *.cs files : Codebehind files that go along with matchting *.aspx files (these are optional as code can be included in <script> blocks in the *.aspx pages.)

Hope that helps.

-Aaron

Saturday, March 24, 2012

Newbie Error....

Ok, I am BRAND new at ASP.NET, managed to get a site I can play with, and trying to just deploy a simple form that has one label that says TEST.

This is the error I get so far...

http://www.jetha.ca/wwwroot/TESTApp/WebForm1.aspx

any thoughts?

Thanks in advance,

GREAT SITE BTW, I think I am going to be here often...

Dee...As I know If the application is not build properly, then assembly won't exist, in that case you will get this error

You can get info on this error at MS Support @.http://support.microsoft.com/default.aspx?scid=kb;en-us;Q306155

Hope it helps!
Thanks for the link, but I rebuilt it, and copied over to the server, and I still get the same error...

This is brand new for me, I am not sure if it is the server or my builds or something else...

Is there something I need to set up on the IIS on the server?
Ok, I got it, my global.aspx file was too many folders down, and it could not find it...I dropped the app in the root directory, and it works...

http://www.jetha.ca/WebForm1.aspx

YAYA!!!!

My first ASP.NET Application... Pretty good eh?
Great!!! Hope you will enjoy using asp.net!

Enjoy while using asp.net and be patient if you get any errors ; )

It's a very wonderful product!
I am sure I will...baby steps right, baby steps...

Thanks again for responding...