I have a form using Web Developer 2005 and C#, and I'm after putting the code behind and the c# code into the same file, rather than putting them in separate files.
I want to open a connection string, but when I put Using System; and Using System.Data.Oledb; at the top of the script it says its an invalid token in class, struct, or interface member declaration
Where should I put it
Thanks!

Where do I put Using System; !!!!
nikos_22
swarmt
hi,
first you are wellcome
second yes you would figure that out after few days with lots of caffeine and reading
best regards
csgear
hi,
i didn't use C# 2.0 in web applications b4, but i used to do that useing vb 1.1 instead anyway to import namespace to my page i use to add this
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<%@ Import Namespace="system.data.oledb" %>
<script runat="server">
in vb when we want to use a namespace we add at the top of the txtfile imports but in C# we type using
in namespace its import without 's' so i'm not sure import working for both C# and vb or not anyway you can try "import" and you can try "using"
hope this helps