Solved

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

Posted on 2012-03-21
3
376 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
[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:murbro
ID: 37746693
Thanks very much
0

Featured Post

Industry Leaders: 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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

734 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