|
-
Aug 28th, 2003, 12:08 PM
#1
Thread Starter
Frenzied Member
Namespace Error
I am receiving this error:
The type or namespace name 'debug' could not be found (are you missing a using directive or an assembly reference?)
here is my code:
Code:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
using System.Diagnostics;
private void Form1_Load(object sender, System.EventArgs e)
{
SqlConnection conn = new SqlConnection("Data Source=webappserver; Integrated Security=SSPI; Initial Catalog=pubs");
SqlCommand cmd = new SqlCommand("SELECT * FROM jobs ORDER BY job_desc", conn);
try
{
conn.Open();
SqlDataReader myReader = cmd.ExecuteReader();
while (myReader.Read())
{
cbo1.Items.Add(myReader["job_desc"]);
}
myReader.Close();
conn.Close();
}
catch(Exception)
{
}
}
private void cbo1_SelectedIndexChanged(object sender, System.EventArgs e)
{
debug.write(sender, e);
}
anyone know why I am receiving this error, even though I am using the System.Diagnostics namespace? I'm using 1.1 framework.
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
-
Aug 28th, 2003, 12:34 PM
#2
Sleep mode
Upper case them .
Code:
Debug.Write (sender,e);
-
Aug 28th, 2003, 01:25 PM
#3
Thread Starter
Frenzied Member
hahahaha!...Excuse me now, while I go get a job in retail!
Thanks BTW!
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|