Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 June 30th, 2004, 12:52 PM
Sky Sky is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Import Namespace highlighted

I don't know why the Import Namespace code is hightlighted in yellow. I copied the code from the book. When I go to Internet explorer to run the aspx I get asked to open the file or download it? It opens up VB.net if I open the file.

Sky

<%@ Import namespace="System.Data.OleDb" %>
<%@ Import namespace="System.Data" %>
<%@ Page CodeBehind="timesheet.aspx.vb" Language="vb" AutoEventWireup="false" Inherits="timesheet.timesheet" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 
Old June 30th, 2004, 01:01 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The yellow highly is because those are page directives (<%@...).

How are you calling the ASPX file?
 
Old June 30th, 2004, 03:05 PM
Sky Sky is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I type in http://localhost/dirname/filename.aspx

 
Old July 1st, 2004, 07:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

What OS are you running, and do you have the .NET framework and IIS on your machine? I've run into that problem whenever I didn't have IIS before.

What editor are you using? The yellow is typically because the editor is coloring the tags in that manner.

Brian
 
Old July 1st, 2004, 09:03 AM
Sky Sky is offline
Registered User
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am running Win2k. I am using Visual Studio .Net. I am running IIS, but what is interesting is that I am not sure if the SKD Framework is running. I have it installed however.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax error? <%@ Import Namespace="System.Data" % fjm9 C# 1 January 16th, 2007 09:17 AM
Import Namespace seannie ASP.NET 2.0 Basics 0 December 7th, 2006 04:48 AM
Can't import a namespace w/vbc command line oneillj ASP.NET 1.0 and 1.1 Basics 0 June 14th, 2006 08:05 PM
Error import namespace sersanoi Classic ASP Databases 0 August 18th, 2005 12:10 PM





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