Solved

Using C# Webform and Site.Master in VB.net project

Posted on 2012-03-21
3
370 Views
Last Modified: 2012-03-21
Hi

I have to take a newly created C# Web application and rebuild it in VB.net
I just need to vopy the Site.Master from the C# project over to my new VB.net project.
How would I do this?

Thanks
0
Comment
Question by:murbro
3 Comments
 
LVL 7

Accepted Solution

by:
Lalit Chandra earned 500 total points
ID: 37746663
It's better to create a new site.master in your new vb.net web application.Then Copy the whole content (excluding the first Line <%@ Master Language="c#".....  %>

Now , Desing/Interface is done.
Thenafter go onine to convert your c# code to vb.net and then replace all the from the new site.master code behind.

The online code converter link is
http://www.developerfusion.com/tools/convert/csharp-to-vb/
0
 
LVL 4

Expert Comment

by:petr_hlucin
ID: 37746673
Since C# and VB.NET are both based on .NET platform you can create a DLL in one of the 2 languages and then use it in another project written in a different language.

Maybe even easier solution (if both projects are in 1 solution) is to set reference in VB.NET project to the C# project - then you'll be able to use C# classes in VB.NET project. Reference is added in Solution Explorer (right click on the project's item References) -> Add reference -> Projects tab.
0
 

Author Closing Comment

by:murbro
ID: 37746693
Thanks very much
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now