SteveoAtilla Posted May 11, 2005 Posted May 11, 2005 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 Quote 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 Robby Posted May 11, 2005 Moderators Posted May 11, 2005 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. Quote Visit...Bassic Software
HJB417 Posted May 11, 2005 Posted May 11, 2005 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> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.