JScript.NET Sample !

No Way
  • No Way

    No Way - 2002-11-27

    I made my first succesfull connection to the db via MySQLDriverCS with this code:
    <%@ Page Language="JScript" Debug="true" %>
    <%@ assembly name="MySQLDriverCS" %>
    <%@ Import namespace="System.Data" %>
    <%@ import NameSpace="MySQLDriverCS" %>

    var myConn : MySQLConnection = new MySQLConnection( new MySQLConnectionString("localhost","primer","spiko","pass").AsString); myConn.Open();

    var dt : DataTable = new MySQLSelectCommand(myConn, new Array("id","naziv","cena"), new Array("Artikel"), null, null, null).Table;
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
      <title>Spletno oglaevanje</title>
      <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
    myConn = null;

    Good luck to you all.

    • Manuel Lucas Viñas Livschitz

      Very good


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks