Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 May 7th, 2010, 02:24 AM
Authorized User
 
Join Date: Mar 2010
Posts: 27
Thanks: 2
Thanked 1 Time in 1 Post
Default When the code is not separated

When the code is not separated to index.aspx and index.aspx.vb
but all the code aspx and vb in the same page index.aspx
where I can but the code such as :
Code:
Imports system.IO
 
Old May 7th, 2010, 03:29 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,

Is this related to the book "Beginning ASP.NET 4 : in C# and VB "? If so, can you specify a page or chapter number?

If it's not related, try posting in one of the more general ASP.NET forum categories here: http://p2p.wrox.com/asp-net-4-539/ or here: http://p2p.wrox.com/asp-net-asp-12/

Cheers,

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!
 
Old May 7th, 2010, 03:37 PM
Friend of Wrox
 
Join Date: Mar 2010
Posts: 99
Thanks: 21
Thanked 6 Times in 4 Posts
Default

Quote:
Originally Posted by msomar View Post
When the code is not separated to index.aspx and index.aspx.vb
but all the code aspx and vb in the same page index.aspx
where I can but the code such as :
Code:
Imports system.IO
I would suggest to seperate your code.. as i PHP programmer.. this was a problem cause in PHP you doesnt have the chance to seperate the code from the logic easily. But when i jumped in ASP.NET this was another story.

However, if you really want to keep the vb code in ASP.NET i am not sure but i guess you can insert <% Imports IO %> in the first line of your page.
 
Old May 8th, 2010, 03:49 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
i am not sure but i guess you can insert <% Imports IO %> in the first line of your page.
Yes, almost, except that for some reason Import without an s is used. You can add tje following below the page directive:

<%@ Import Namespace="System.IO" %>

Cheers,

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
Data separated by ~'s llunde Crystal Reports 0 September 22nd, 2009 08:44 AM
splitting up items separated by semicolon Condor76 XSLT 1 March 17th, 2008 05:14 PM
Comma Separated values aldwinenriquez SQL Server 2005 3 June 1st, 2007 08:52 PM
comma separated list MunishBhatia SQL Server 2000 11 March 21st, 2007 03:56 PM
Comma Separated Column Value thru T-SQL subhendude SQL Server 2000 2 December 12th, 2006 01:42 PM





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