Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ASP.NET/VB: "Imports"  causes error

Posted on 2013-12-17
3
809 Views
Last Modified: 2013-12-27
How can I import these without getting an error?
<%@ Page Language="VB" %>
<%

Imports System
Imports System.Xml
Imports System.IO
Imports System.Text

HttpContext.Current.Response.Write("Hello World")

%>

Open in new window

Compiler Error Message: BC30035: Syntax error.
0
Comment
Question by:hankknight
3 Comments
 
LVL 8

Assisted Solution

by:5teveo
5teveo earned 250 total points
ID: 39724427
try ...

<%@ import namespace="Imports System" %>
.
.
<%@ import namespace="Imports System.Text" %>


<%@ Page Language="VB" %>
<%

HttpContext.Current.Response.Write("Hello World")

%>
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 250 total points
ID: 39724442
should be :

<%@ Page Language="VB" %>

<%@Import namespace="System"%>
<%@Import namespace="System.Xml"%>
<%@Import namespace="System.IO"%>
<%@Import namespace="System.Text"%>

<%
HttpContext.Current.Response.Write("Hello World")
%> 

Open in new window

0
 
LVL 16

Author Comment

by:hankknight
ID: 39742026
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FInd Image Control Gridview 3 21
Finding Events logs for IIS website that restarts 2 14
Access/Visual Basic Question 3 25
Groupbox Control ? 2 19
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

828 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