Results 1 to 2 of 2

Thread: Reference in notepad????

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2003
    Location
    México
    Posts
    20

    Reference in notepad????

    i'm programming in notepad, because i don´t have the VS.Net IDE, i jut downloaded the framework.net, and then how i need make an example with OBDC.net, in the axample, is asked to add a reference to the OBDC.dll, but it is by Project menu of the VS.Net IDE, but i don't have this IDE, so how can i add a reference to a DLL if i using the notepad as editor for my C# programs????

  2. #2
    Hyperactive Member
    Join Date
    Dec 2001
    Location
    Dublin, Ireland
    Posts
    262
    First of all I would recommend you get something better than notepad like Webmatrix - www.asp.net - which will make life easier for you.
    I'm fairly sure you can get away without a reference if you use the full name of what you are referencing e.g.:-

    System.Data.OleDb.OleDbConnection oledbConnection1 = new System.Data.OleDb.OleDbConnection();
    oledbConnection1.ConnectionString = myConnectionString;

    or at the top of your code page (assuming you are using a seperate code page) put - using System.Data.OleDb;

    using System.Data.OleDb;

    public class WebForm1 etc.......

    then you could use

    OleDbConnection oledbConnection1 = new OleDbConnection();

    and so on.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width