Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > import namespace not working in 2005!

Reply
Thread Tools

import namespace not working in 2005!

 
 
=?Utf-8?B?cGF0cmlja2RyZA==?=
Guest
Posts: n/a
 
      04-26-2007
Hi everyone!

In asp.net 2003, I was using for example:

<%@ import namespace="mycompany.services.mynamespace" %>
and later I could access all mynamespace's classes from the aspx page
(separate from code behind):

<%= myclass.mymethod %>

while in asp.net 2005 I can only use full qualifiers, like:

<%= mycompany.services.mynamespace.myclass.mymethod %>

The second one works in asp.net 2005,
but not the first!
Why is that?

Thanks in advance!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
import parser does not import parser.py in same dir on win Joel Hedlund Python 2 11-11-2006 03:46 PM
why "import namespace=" ..." if not necessary? Chris ASP .Net 3 05-10-2006 06:42 PM
ERROR CS0234: The type or namespace name 'DataAccessHelper' does not exist in the namespace 'BCC' (are you missing an assembly reference?) li.eddie@gmail.com ASP .Net 0 01-06-2006 11:31 AM
procedure to add web reference which will not create new namespace just add class in existing namespace. Deep Mehta via .NET 247 ASP .Net Web Services 2 05-31-2005 05:05 AM
IMPORT STATIC; Why is "import static" file scope? Why not class scope? Paul Opal Java 12 10-10-2004 11:01 PM



Advertisments