השדון יחזקאל
New member
שאלה של מתחילים...
יש לי את הקוד הזה (סליחה שהוא ארוך זה לא יקרה שנית:
יש לי את הקוד הזה (סליחה שהוא ארוך זה לא יקרה שנית:
<%@ Page Language="C#" Debug="true" %> <%@Import Namespace=System.Data%> <%@Import Namespace=System.Data.OleDb%> <% void OnLoad(System.EventArgs e) { string conStr; conStr = "Microsoft.Jet.OLEDB.4.0; Data Source=statDB.mdb"; OleDbConnection Conn = new OleDbConnection(conStr); // Declare a new connection object Conn.Open(); //Open a connection OleDbCommand cmd = new OleDbCommand("SELECT * FROM myTable"); OleDbDataReader dr; //Assume declaration of DataReader, Command, etc. dr = cmd.ExecuteReader(); while (dr.Read()) { Response.Write(dr.GetInt32(0)); //Field 0 contains numeric values Response.Write(dr.GetString(1)); //Field 1 contains string values } Conn.Close(); //Dont forget to close it! } %>
משום מה יש לי את השגיאה הזו:Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1513: } expected Source Error: Line 77: } Line 78: Line 79: private void __Render__control1(System.Web.UI.HtmlTextWriter __output, System.Web.UI.Control parameterContainer) { Line 80: Line 81: #line 5 "c:\inetpub\wwwroot\avodot\graf\pic1.aspx"
ואין לי מה שוג מה הבעיה. תודה ארז.