Mixing C# files and aspx files in a Web app?

  • Thread starter Thread starter Harold S
  • Start date Start date
H

Harold S

I am trying to integrate a C# and aspx pages together in a project..
When I try to transfer to a C# page from a aspx file it doesnt like it.

I thought that I could have both type of pages in a project.. Am i wrong or
do i need to set something for this to work?

Thanks in Advance
HS
 
I don't quite understand. An ASPX page is independent of the language, it
just inherits from the base class( with the page directive Inherits).

ASPX is used only for presentation, or at least it should be to follow a
more MVC pattern.

Could you explain a little more?

thanks,
CJ
 
* "Harold S said:
I am trying to integrate a C# and aspx pages together in a project..
When I try to transfer to a C# page from a aspx file it doesnt like it.

This is a VB.NET group, the C# group is
microsoft.public.dotnet.languages.csharp.
 
I mean I have a Web Project in VB.Net, but I need to add a C# page to
it.. I opened an aspx page and changed the Language to "C#" and the
codebehind to Codebehind="xxxx.aspx.cs" ..but when I try to serve it
from a vb page it doesnt like it ...
Was wondering if I missed something!

Thanks for your prompt reply,

HS
 
Hi HS,

I know that this is not any problem on a aspx page with code on it, that can
be in any program language.

However now you are using Dll's.

But when there is no interaction between the two pages, what can than be the
trouble to make a seperate project from it.

My doubt is if the session (when you need that) is a part of the IIS in this
as it always was,
I think the only way to know that is trying.

You can doing that not use the cache or the shared classes because those
belong to the application and than you have to make something as seperate
Dll's in my opinion. And I do not believe that one page is worth that.

Just some thoughts

Cor
 
Yeah, that and you can't mix CS and VB in the same project on web projects
(or any from what I've seen)

=0
 
Thanks Herfried,
I can cross post if you like..
This is a Web App with VB.Net pages hence I thot would be OK.

Thanks
HS
 
* H S said:
Thanks Herfried,
I can cross post if you like..
This is a Web App with VB.Net pages hence I thot would be OK.

I only wanted to make you aware that some readers of the group may be
irritated by C# posts...
 
Back
Top