Solved

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

Posted on 2012-03-21
3
379 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:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:Murray Brown
ID: 37746693
Thanks very much
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

617 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