Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

The three most important things in life: God, your family, and the Green Bay Packers -- Not necessarily in that order.

Winning is not a sometime thing. You don't win once in a while, you don't do things right once in a while, you do them right all the time. Winning is a habit. Unfortunately, so is losing.

-- Vincent T. Lombardi
  • Moderators
Posted
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.
Visit...Bassic Software
Posted

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>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...