using directive w/o code-behind

G

Guest

I developed an asp.net 2.0 page without using the code-behind model because
the page is so simple. Now I am trying to add "using
System.Data.OracleClient" to the page, but asp doesn't seem to like it no
matter where I put it. Is there a valid syntax for this? I feel silly
recoding the page to use code-behind just so I can add the using directive.

Thanks.
 
B

Bruno Alexandre

after the line
<%@ Page Language= ...

add the line:

<%@ Import Namespace="System.Data.OracleClient" %>
 

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

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top