Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2012-03-21
3
Medium Priority
?
391 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
3 Comments
 
LVL 7

Accepted Solution

by:
Lalit Chandra earned 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline

926 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