How do I Add a Reference inline C# withOUT using Visual Studio?

S

shustes

Hi,

I need to access XML data from a Sharepoint 2003 default.aspx page.
There is no Visual Studio project and no code behind, yet I need to
employ the System.XML namespace.

Any assistence and code snippets would be appreciated.

Thanks,

Shustes
 
N

Nicholas Paldino [.NET/C# MVP]

Shustes,

Well, you don't set a reference in code, you just use the fully
qualified names, or the shorthand, placing the namespaces in using
declarations at the top of the file (or in the namespace declarations).

It's when you compile the code that you have to set references, which
you do with the /reference switch (specifying the filename that you are
referencing).
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

I'm not very sure of that you mean with that. So post back with more details
in case that this does not solve yoru problem.

You can include a reference in the aspx page:
<%@ Import Namespace="System.Xml" %>
 
N

Nicholas Paldino [.NET/C# MVP]

Unngh, ignore this. Sorry for the confusion. Didn't see the mention of
the ASPX page.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Nicholas Paldino said:
Shustes,

Well, you don't set a reference in code, you just use the fully
qualified names, or the shorthand, placing the namespaces in using
declarations at the top of the file (or in the namespace declarations).

It's when you compile the code that you have to set references, which
you do with the /reference switch (specifying the filename that you are
referencing).


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi,

I need to access XML data from a Sharepoint 2003 default.aspx page.
There is no Visual Studio project and no code behind, yet I need to
employ the System.XML namespace.

Any assistence and code snippets would be appreciated.

Thanks,

Shustes
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top