Showing posts with label building. Show all posts
Showing posts with label building. 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 Deployment question

Hi,

I am building a ASP.NET web app that a compnay is hosting for me, and they
have given me all the FTP info so I can upload files to the virtual
directory, and they have put a default.htm file there, which says the web
site is coming.

This I fear is a lame question but how can I get my default web page to
appear instead of theirs when visitors type in www.mywebsite.com

TIA
Colin BAs long as they have ASP.NET installed, you should be able to just copy over
that default file. (Anyone) Correct me if I'm wrong, but they must have
their server set up to recognize the aspx page as a default page as well.

If they don't have the .NET framework on their server, you might be up the
creek.

"Colin Basterfield" <colinbasterfield@.hotmail.com> wrote in message
news:ext%235jaAEHA.3308@.TK2MSFTNGP10.phx.gbl...
> Hi,
> I am building a ASP.NET web app that a compnay is hosting for me, and they
> have given me all the FTP info so I can upload files to the virtual
> directory, and they have put a default.htm file there, which says the web
> site is coming.
> This I fear is a lame question but how can I get my default web page to
> appear instead of theirs when visitors type in www.mywebsite.com
> TIA
> Colin B
Hi Pat,

> If they don't have the .NET framework on their server, you might be up the
> creek.

They do, that was why I chose them.

>Correct me if I'm wrong, but they must have their server set up to
recognize the aspx page as a default page as well.

I am assuming this to be the case.

many thanks
Colin B

"Pat Lester" <lest3560@.bellsouth.net> wrote in message
news:owz1c.32710$Tn.4372@.bignews5.bellsouth.net...
> As long as they have ASP.NET installed, you should be able to just copy
over
> that default file. (Anyone) Correct me if I'm wrong, but they must have
> their server set up to recognize the aspx page as a default page as well.
> If they don't have the .NET framework on their server, you might be up the
> creek.
>
> "Colin Basterfield" <colinbasterfield@.hotmail.com> wrote in message
> news:ext%235jaAEHA.3308@.TK2MSFTNGP10.phx.gbl...
> > Hi,
> > I am building a ASP.NET web app that a compnay is hosting for me, and
they
> > have given me all the FTP info so I can upload files to the virtual
> > directory, and they have put a default.htm file there, which says the
web
> > site is coming.
> > This I fear is a lame question but how can I get my default web page to
> > appear instead of theirs when visitors type in www.mywebsite.com
> > TIA
> > Colin B
On the document tab of the property of your virtual directory in the IIS
snap shot
they should move default.aspx up front . You should actually make sure they
have done it.
I have had the same problem with my own server especially if they are using
windows 2003 server.

And of course your applicaticon start up page should be deafult.aspx .
The idea here is , that it should what ever .htm or aspx is first listed in
"documents" of
your application property.

"Colin Basterfield" <colinbasterfield@.hotmail.com> wrote in message
news:uPDdVBbAEHA.3248@.TK2MSFTNGP11.phx.gbl...
> Hi Pat,
> > If they don't have the .NET framework on their server, you might be up
the
> > creek.
> They do, that was why I chose them.
> >Correct me if I'm wrong, but they must have their server set up to
> recognize the aspx page as a default page as well.
> I am assuming this to be the case.
> many thanks
> Colin B
> "Pat Lester" <lest3560@.bellsouth.net> wrote in message
> news:owz1c.32710$Tn.4372@.bignews5.bellsouth.net...
> > As long as they have ASP.NET installed, you should be able to just copy
> over
> > that default file. (Anyone) Correct me if I'm wrong, but they must have
> > their server set up to recognize the aspx page as a default page as
well.
> > If they don't have the .NET framework on their server, you might be up
the
> > creek.
> > "Colin Basterfield" <colinbasterfield@.hotmail.com> wrote in message
> > news:ext%235jaAEHA.3308@.TK2MSFTNGP10.phx.gbl...
> > > Hi,
> > > > I am building a ASP.NET web app that a compnay is hosting for me, and
> they
> > > have given me all the FTP info so I can upload files to the virtual
> > > directory, and they have put a default.htm file there, which says the
> web
> > > site is coming.
> > > > This I fear is a lame question but how can I get my default web page
to
> > > appear instead of theirs when visitors type in www.mywebsite.com
> > > > TIA
> > > Colin B
> >