I created an asp.net login page and I have options that if the user clicks one it can go to different pages. All the other pages are written in aspx.vb but I had to write the last in .cs. I wanted to know if I could link this page to the .net files so it will load like the other do in a web page.

Recommended Answers

All 3 Replies

Compile the .cs as an assembly/class library (.dll) and include it as a reference to the project.

Compile the .cs as an assembly/class library (.dll) and include it as a reference to the project.

Could you possibly simplify that down for me. I am new to this and don't know all those terms really.

Make a new project in C# that compiles the .CS file into a DLL -- (a class-library project).

Once it is compiled, you can add that DLL file to your ASP.NET application by adding it as a reference.

Once you do that, you will have access to the functions that are in the .CS file from VB.

This, of course, assumes you didn't create a separate ASP.NET project in C#.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.