Mmhh i am very puzzled by your question as it seems you speak about 2
totally different things.
If you want to import a namespace in your aspx page, at the top just put
something like :
<%@ Import namespace="MyNameSpace" %>
But if you want to do :
"so I can call the method without having to create a new object "
as you say in your message, then the method need to be static (shared in VB)
You will call that method like :
Myclass.MyMethod();
No need to specify the full namespace as you can import it as i showed you.
Best regards,
Francois
"Katie S" <an*******@discussions.microsoft.com> wrote in message
news:82**********************************@microsof t.com...
I have a method that takes a string, formats it and returns it.
I want to use this in multiple ASP.NET pages, by putting it in a namespace
and using that in each asp.net page.
What I don't understand is how to write that namespace so that I can
reference that method elsewhere by simply writing : string Message = "Hello world";
string newstring = MyNamespace.MyMethod(Message);
so I can call the method without having to create a new object
Thankyou, Katie.