Main Page | Report Page

 

  .NET DotNet Forum Index » ASP.NET Forum » Where are project files?...

Author Message
Vik...
Posted: Tue Apr 07, 2009 3:23 pm
 
1. I created a VS2005 ASP.NET project in C#. It contains the aspx and
aspx.cs files with the partial classes. Where are the files with the control
declarations?

2. I got a a VS2005 ASP.NET project in C# from an employee who left a
company. It contains the aspx files, no *.cs files and the
Asp_Web_*.aspx.*.dll files in a bin folder for each aspx file. How these
dll's were created? (The dll's are not created in my project when I click
Buld Web Site). Are the original *.cs files moved to another location when
the dll's are created?

Thanks.
 
Scott M....
Posted: Tue Apr 07, 2009 3:59 pm
 
Most likely, these are ASP .NET Web "Sites", and not ASP .NET Web
Application "Projects".

ASP.NET Web sites are dynamically compiled based on the declarative markup
in the .aspx page.

Also, it is possible to place server code (code that would otherwise be in a
..cs file), directly inline within the .aspx page itself.

-Scott

"Vik" <viktorum at (no spam) ==yahoo.com==> wrote in message
news:OkRZy57tJHA.3988 at (no spam) TK2MSFTNGP05.phx.gbl...
Quote:
1. I created a VS2005 ASP.NET project in C#. It contains the aspx and
aspx.cs files with the partial classes. Where are the files with the
control declarations?

2. I got a a VS2005 ASP.NET project in C# from an employee who left a
company. It contains the aspx files, no *.cs files and the
Asp_Web_*.aspx.*.dll files in a bin folder for each aspx file. How these
dll's were created? (The dll's are not created in my project when I click
Buld Web Site). Are the original *.cs files moved to another location when
the dll's are created?

Thanks.

 
Vik...
Posted: Tue Apr 07, 2009 4:18 pm
 
You are right, these are the Web Sites, not the projects (I believe they
were called projects in VS2003).
The code is not within the aspx pages.
Could you tell where may be the designer code for the first site and why
there are dll's in the second site and not in the first one?

Thanks.

Vik

"Scott M." <s-mar at (no spam) nospam.nospam> wrote in message
news:uO$%23kM8tJHA.3520 at (no spam) TK2MSFTNGP04.phx.gbl...
Quote:
Most likely, these are ASP .NET Web "Sites", and not ASP .NET Web
Application "Projects".

ASP.NET Web sites are dynamically compiled based on the declarative markup
in the .aspx page.

Also, it is possible to place server code (code that would otherwise be in
a .cs file), directly inline within the .aspx page itself.

-Scott

"Vik" <viktorum at (no spam) ==yahoo.com==> wrote in message
news:OkRZy57tJHA.3988 at (no spam) TK2MSFTNGP05.phx.gbl...
1. I created a VS2005 ASP.NET project in C#. It contains the aspx and
aspx.cs files with the partial classes. Where are the files with the
control declarations?

2. I got a a VS2005 ASP.NET project in C# from an employee who left a
company. It contains the aspx files, no *.cs files and the
Asp_Web_*.aspx.*.dll files in a bin folder for each aspx file. How these
dll's were created? (The dll's are not created in my project when I click
Buld Web Site). Are the original *.cs files moved to another location
when the dll's are created?

Thanks.



 
Mark Rae [MVP]...
Posted: Tue Apr 07, 2009 4:52 pm
 
"Scott M." <s-mar at (no spam) nospam.nospam> wrote in message
news:uO$%23kM8tJHA.3520 at (no spam) TK2MSFTNGP04.phx.gbl...

Quote:
Also, it is possible to place server code (code that would otherwise be in
a .cs file), directly inline within the .aspx page itself.

Both web sites and web projects support either inline code or code behind -
there is, essentially, no difference...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net
 
Scott M....
Posted: Tue Apr 07, 2009 5:02 pm
 
I didn't say there was, but obviously the OP is new to VS 2005 and in VS
2003, where he is coming from, VS didn't offer the inline model. Since he's
having trouble finding the code, I was pointing out that this option exists
in the project type that he's using.

-Scott


"Mark Rae [MVP]" <mark at (no spam) markNOSPAMrae.net> wrote in message
news:uR$Xbs8tJHA.3816 at (no spam) TK2MSFTNGP05.phx.gbl...
Quote:
"Scott M." <s-mar at (no spam) nospam.nospam> wrote in message
news:uO$%23kM8tJHA.3520 at (no spam) TK2MSFTNGP04.phx.gbl...

Also, it is possible to place server code (code that would otherwise be
in a .cs file), directly inline within the .aspx page itself.

Both web sites and web projects support either inline code or code
behind - there is, essentially, no difference...


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Mark Rae [MVP]...
Posted: Tue Apr 07, 2009 7:32 pm
 
"Scott M." <s-mar at (no spam) nospam.nospam> wrote in message
news:en6vlv8tJHA.3988 at (no spam) TK2MSFTNGP05.phx.gbl...

[please don't top-post]

Quote:
Also, it is possible to place server code (code that would otherwise be
in a .cs file), directly inline within the .aspx page itself.

Both web sites and web projects support either inline code or code
behind - there is, essentially, no difference...

I didn't say there was, but obviously the OP is new to VS 2005 and in VS
2003, where he is coming from, VS didn't offer the inline model.

Er, yes it did:
http://www.google.co.uk/search?sourceid=navclient&hl=en-GB&ie=UTF-8&rlz=1T4GPTB_en-GBGB298GB298&q=Visual+Studio.NET+2003+inline


--
Mark Rae
ASP.NET MVP
http://www.markrae.net
 
Scott M....
Posted: Wed Apr 08, 2009 4:48 pm
 
Mark,

I (and many others) prefer top-posts because if you are involved in a long
thread, you don't have to scroll down, page after page, to see a short reply
someone may have added. That topic has been debated ad-nauseum and I've
been a contributor to these NG's for over a decade, so I don't feel I need a
lecture on how to use them. I'll just finish that thought by saying that
things have changed a bit since the inception of the Usenet.

As for VS 2003 supporting inline code, let me say that the link you provided
didn't really have much that immediately made your point that inline code
was/is supported in VS 2003. AFAIK, VS 2003 even with SP1 did not offer an
inline coding model for an .aspx item template.

That's not to say that you couldn't *do* inline coding in VS 2003, which is
not what I said. I said VS 2003 didn't *offer* an inline coding model, not
that it didn't *support* inline coding. Either way, you are parsing the
point so finely that you've missed the bigger picture. The OP is new to VS
2005 and only knows how VS 2003 did things. VS 2003 didn't *offer up* an
inline coding model and VS 2005 does. The purpose of me bringing inline
into the discussion was to point out something new that the OP has available
to him that he probably never ran into with VS 2003. He's asking where his
code-behinds were, so obviously he doesn't know about coding inline.

I'll direct you to this link:
http://www.developer.com/net/csharp/article.php/3087791 for an article by
Dino Espisito that discusses ASP.NET 1.x development and code-behinds.

-Scott



"Mark Rae [MVP]" <mark at (no spam) markNOSPAMrae.net> wrote in message
news:ekM0zF%23tJHA.5836 at (no spam) TK2MSFTNGP06.phx.gbl...
Quote:
"Scott M." <s-mar at (no spam) nospam.nospam> wrote in message
news:en6vlv8tJHA.3988 at (no spam) TK2MSFTNGP05.phx.gbl...

[please don't top-post]

Also, it is possible to place server code (code that would otherwise be
in a .cs file), directly inline within the .aspx page itself.

Both web sites and web projects support either inline code or code
behind - there is, essentially, no difference...

I didn't say there was, but obviously the OP is new to VS 2005 and in VS
2003, where he is coming from, VS didn't offer the inline model.

Er, yes it did:
http://www.google.co.uk/search?sourceid=navclient&hl=en-GB&ie=UTF-8&rlz=1T4GPTB_en-GBGB298GB298&q=Visual+Studio.NET+2003+inline


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
David Jackson...
Posted: Wed Apr 08, 2009 8:45 pm
 
"Scott M." <s-mar at (no spam) nospam.nospam> wrote in message
news:Oah8oMJuJHA.4324 at (no spam) TK2MSFTNGP05.phx.gbl...

Quote:
I (and many others) prefer top-posts

Just as many (if not more) prefer bottom posting to avoid having to read
posts backwards.

Quote:
because if you are involved in a long thread, you don't have to scroll
down, page after page, to see a short reply someone may have added.

That's what proper snipping is for.

Quote:
I've been a contributor to these NG's for over a decade

And you still haven't learnt to post correctly?

Quote:
so I don't feel I need a lecture on how to use them.

If you think that a polite request to post properly is a 'lecture', then
you've obviously led a charmed life on newsgroups!

Quote:
I'll just finish that thought by saying that things have changed a bit
since the inception of the Usenet.

How so?

Quote:
That's not to say that you couldn't *do* inline coding in VS 2003, which
is not what I said. I said VS 2003 didn't *offer* an inline coding model,
not that it didn't *support* inline coding.

That is one of the stupidest comments I've heard for ages!

DJ
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Thu May 26, 2016 3:44 am