Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > Visual Web Developer 2005
|
Visual Web Developer 2005 Discuss creating ASP.NET 2.0 sites with Microsoft's Visual Web Developer 2005. If your question is more specific to a piece of code than the Visual tool, see the ASP.NEt 2.0 forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2007, 06:41 AM
Registered User
 
Join Date: Jan 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default integrating portions coded using vb.net to c#

I am working on a project on asp.net and have performed most of the coding using vb.however i need to add a new module to the project that is coded using c#.can anyone gimme information regarding how i can integrate these two modules together

Thanks.

 
Old June 27th, 2007, 12:19 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

:S I've done this in VB Studio (for windows applications), but not VWD. But since no one else is replying, here's my best guess.

I don't think it will be a huge problem. All the files should be in your directory, they don't have cooties. ;) and will hang together just fine. Then call whichever set of code you need for each webpage.

Your problem may be that I don't know if you can have more than one code behind attached to a webpage (it may be easy, I just don't know how to do it). So you may have to pick whether you want to hook up the C# code behind or the VB code behind. C# and VB won't work in the same code behind, but as long as you don't mix the code in the file, Visual studio didn't have any problems. Each file is handing stuff off to the RTE so they can even pass variables from a page with VB to a page with C# and vice versa. If you HAVE to have functions from a VB page, and some from a C# page, you may be stuck reprogramming the functionality of one into the code from another. But I'd check to see if there's a way to pull multiple code behinds into an .aspx page first, there may be a way.

And Good luck!

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.





Similar Threads
Thread Thread Starter Forum Replies Last Post
integrating excel into vb 2005 express jffrs_20 Visual Basic 2005 Basics 0 October 12th, 2008 10:59 PM
Integrating Excel 2007 into VB 2005 express jffrs_20 Visual Studio 2005 0 October 12th, 2008 10:49 PM
Integrating from of Vb.net with C# appln pady123 C# 2 September 27th, 2007 07:50 PM
integrating vb and crystal report 10 prof Samuel Banda BOOK: Professional Crystal Reports for VS.NET 0 December 28th, 2006 10:00 AM
Word Editor in VB and integrating to Access table akash VB How-To 1 April 11th, 2005 08:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.