Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 July 25th, 2010, 02:15 AM
Authorized User
 
Join Date: Feb 2010
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Language change

Hi ,

I am using Visual Stodiu 2008, i was using C# language while practicing but i changed that to vb, how can change that back to C# the same web form which i was using Vb in that??
Please guide me in this regard.

Thanks
 
Old July 25th, 2010, 03:50 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

It's not so easy to change the language of an existing form, as you'll need to change and rename quite a bit. Easier is to create a new form and copy stuff over, like this:

1. Rename the old form to something like .old
2. Create a new form in the right language with the same name as the form you're converting
3. Copy over the markup
4. Copy over the code behind (using http://converter.telerik.com for example)
5. Fix issues

Some of the issues you may run into are the handlers that are added in Code Behind for VB, and to the mark up in C#. E.g. in C# you'll see OnClick="..." for a Button in Markup, in VB you'll see ..... Handles Button1.Click on Code Behind. You manually need to resolve these issues.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the programming language sameeha BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 December 30th, 2009 09:20 PM
Change Programming Language Jimmy18 Visual C++ 0 September 23rd, 2009 05:40 AM
Language change in Text box nishab345 VB How-To 0 June 26th, 2007 09:13 AM
Change Programming Language ritag ADO.NET 6 June 16th, 2004 04:06 AM





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