<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript" language="javascript"> function getsql() { var connection = new ActiveXObject("ADODB.Connection"); var connectionstring = "Data Source=ajel-xxxxxx;Initial Catalog=xxxxx;User ID=sa;Password=xxxxx;Provider=xxxxx"; connection.Open(connectionstring); var rs = new ActiveXObject("ADODB.Recordset"); rs.Open("SELECT * FROM studenttable", connection); rs.MoveFirst while (!rs.eof) { document.write(rs.fields(0)); document.write(rs.fields(1)); document.write(rs.fields(2)); rs.movenext; } rs.close; connection.close; } </script> <style type="text/css"> #TextArea1 { height: 40px; width: 108px; margin-bottom: 0px; } </style> </head> <body> <p> <input id="Button1" type="button" value="button" önclick="return Button1_onclick()" /></p> <p> <textarea id="TextArea1" cols="20" name="S1" rows="1"></textarea></p> <p> </p> <p> </p> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)