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

  • Thread starter Thread starter shustes
  • Start date Start date
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
 
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).
 
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" %>
 
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

Back
Top