Solved

ASP.NET/VB: "Imports"  causes error

Posted on 2013-12-17
3
817 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
[X]
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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

756 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