Mixed languages in ASPX site???

SteveoAtilla

Regular
Joined
Dec 22, 2004
Messages
80
Location
The Frozen Tundra
This may be a strange question, or it may not....

Can you mix the languages of codebehind pages within a single ASPX site? For example, can MyPage1.aspx have a vb codebehind page, and MyPage2.aspx have a c# codebehind?

If so, how would you go about doing that in .NET?

Thanks,

Kahuna
 
You cannot. What you need to do is create a seperate assembly/DLL in order to use a different language. Basically you can create your DAL or Business layer in the other language.
 
if you were to do it inline, then yes
//PAGE1.ASPX
<script runat="server" language="csharp">
void Page_Load(object sender, EventArgs e)
{
}
</script>
//PAGE2.ASPX
<script runat="server" language="vb">
//VB.NET code goes here
</script>
 
Back
Top