import namespace not working in 2005!

Discussion in 'ASP .Net' started by =?Utf-8?B?cGF0cmlja2RyZA==?=, Apr 26, 2007.

  1. 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!
     
    =?Utf-8?B?cGF0cmlja2RyZA==?=, Apr 26, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. abcd
    Replies:
    0
    Views:
    488
  2. Replies:
    0
    Views:
    5,431
  3. Paul Opal
    Replies:
    12
    Views:
    1,230
    Paul Opal
    Oct 11, 2004
  4. Chris
    Replies:
    3
    Views:
    7,919
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    May 10, 2006
  5. Joel Hedlund
    Replies:
    2
    Views:
    750
    Joel Hedlund
    Nov 11, 2006
  6. Joel Hedlund
    Replies:
    0
    Views:
    443
    Joel Hedlund
    Nov 11, 2006
  7. John Boy
    Replies:
    1
    Views:
    438
    John Machin
    Mar 10, 2008
  8. Peng Yu
    Replies:
    0
    Views:
    497
    Peng Yu
    Oct 31, 2009
Loading...