473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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

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
Nov 20 '05 #1
7 1153
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" <hs****@grange.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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

Nov 20 '05 #2
* "Harold S" <hs****@grange.com> scripsit:
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.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
H S
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #4
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
Nov 20 '05 #5
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

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uu**************@TK2MSFTNGP10.phx.gbl...
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

Nov 20 '05 #6
H S


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


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #7
* H S <hs****@yahoo.com> scripsit:
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...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rudolf | last post by:
Is it possible to add a vb.net source code module to a c# project and if so how? Thanks Rudolf
1
by: Steve Marsden | last post by:
Hi All the information I had read suggested that if you had an existing C project that you wished to change to managed code all you had to do was use the /clr switch and then over time you could...
4
by: MR. UNDERHILL | last post by:
I want to use forms authentication on my website. Looking at the documentation, I create a sample site for testing. One of my requirements is to ensure that SOME pages required an authenticated...
2
by: Dan | last post by:
Hi What are the dangers of mixing asp and asp.net? For the .net part of the site i will need to use the global.asax file but for the asp parts it will be using the other global. file, is there...
0
by: Rob R. Ainscough | last post by:
I'm getting a bizarre error in the IDE Error List: ****** The Error message ******* Value of type 'MyDLL.Customer' cannot be converted to 'MyDLL.Customer'. Type mismatch could be due to the...
3
by: jason | last post by:
I've been working with C# for over a year now without touching vb.net code. I had a few light years of vb.net before that. No real vb6 or windows form experience. Suddenly, I have an assignment...
2
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I have a website written entirely in classic ASP. My customer has asked if I can place one (1) aspx page into the website. They don't want the domain name to change between the aspx &...
1
by: David C | last post by:
We have an existing internet application that has been around fairly long and is an asp application. We have been asked to add some pages and we would like to do them in ASP.Net 2.0 or higher. Is...
1
by: smileprince00 | last post by:
hi friends, i am new learner of this sql server 2008.my question is if my primary data file i.e .mdf is restricted to certain amount of memory like 100mb..i have some more secondary data files.i.e...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.