Solved

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

Posted on 2012-03-21
3
373 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

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…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

815 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

13 Experts available now in Live!

Get 1:1 Help Now