0

c programming with visual studio 2010 ebook

 programming in c# with visual studio 2010 vol i (microsoft)

programming in c# with visual studio 2010 vol i (microsoft)

Kỹ thuật lập trình

... Apply best practices commenting a Visual C# application. 1-2 Programming in C# with Microsoft® .Visual Studio 2010 Module Overview Microsoft® Visual Studio 2010 and the Microsoft .NET Framework ... created a new console application called MyProject, which is saved in the C: \Users\Student\Documents \Visual Studio 2010\ MyProject\ folder. 1. Click Start, point to All Programs, click Microsoft ... Microsoft Visual Studio 2010, click Visual Studio Tools, and then click Visual Studio Command Prompt (2010) . 2. In the Visual Studio Command Prompt window, type the text in the following code...
  • 628
  • 3,468
  • 0
Practical Database Programming With Visual C#.NET- P6

Practical Database Programming With Visual C#.NET- P6

Cơ sở dữ liệu

... OleDbCommand accCommand = new OleDbCommand(); SelectionForm selForm = new SelectionForm(); OleDbDataReader accDataReader; accCommand.Connection = accConnection; accCommand.CommandType = CommandType.Text; ... "Data Source =C: \\database\\Access\\CSE_DEPT.accdb;"; accConnection = new OleDbConnection(strConnectionString); try { accConnection.Open(); } catch (OleDbException e) { MessageBox.Show("Access ... DataTable accDataTable = new DataTable(); OleDbCommand accCommand = new OleDbCommand(); SelectionForm selForm = new SelectionForm(); accCommand.Connection = accConnection; accCommand.CommandType...
  • 50
  • 638
  • 0
Practical Database Programming With Visual C#.NET- P7

Practical Database Programming With Visual C#.NET- P7

Cơ sở dữ liệu

... string.Empty; DataRow rowFaculty; accCmdFaculty.Connection = logForm.accConnection; accCmdFaculty.CommandType = CommandType.Text; accCmdFaculty.CommandText = strFaculty; accCmdFaculty.Parameters.Add("@Param1", ... MTC-336J33486 Steve Johnson MTC-118K69880 Jenney King MTC-324course_id faculty_id classroomCSC-131A A52990 TC-109CSC-13 1C A52990 TC-109CSC-132A J33486 TC-303CSC-132B B78880 TC-302CSC-230 ... OleDbType.Char).Value = ComboName.Text; FacultyDataAdapter.SelectCommand = accCmdFaculty; FacultyDataAdapter.Fill(accFacultyTable); if (accFacultyTable.Rows.Count > 0) { rowFaculty = accFacultyTable.Rows[0];...
  • 50
  • 646
  • 1
Practical Database Programming With Visual C#.NET- P8

Practical Database Programming With Visual C#.NET- P8

Cơ sở dữ liệu

... oraDataReader.Close(); }A B C D OracleSelectRTObject.LogInForm cmdReadLogIn_Click() Figure 5.164 Coding for the ReadLogIn button Click method. private void cmdCancel_Click(object sender, ... A B C D E F SQLSelectRTObjectLINQ.FacultyForm cmdSelect_Click() Figure 5.150 Coding for the constructor of the FacultyForm. c0 5.indd 39 5c0 5.indd 395 2/11 /2010 2:59:06 PM2/11 /2010 2:59:06 ... namespace System.Data.SqlClient to the namespace declaration section on this SP form code window. The only difference is the codes for the Select button Click method, cmdSelect_Click(). Don ’ t copy...
  • 50
  • 507
  • 0
Practical Database Programming With Visual C#.NET- P9

Practical Database Programming With Visual C#.NET- P9

Cơ sở dữ liệu

... with Visual C# .NET1. Change the namespace from SelectWizard to SQLInsertWizard for each source fi le. To do that, open the source fi le for each class such as LogIn.cs, Grid.cs, Faculty.cs, Cource.cs, ... data queries on Microsoft Access 2007, SQL Server 2005, and Oracle databases. • Use the OleDbConnection, SqlConnection, or OracleConnection class to connect to Microsoft Access 2007, SQL Server ... new faculty without any photo accompanying that insertion. 2. The Faculty Photo checkbox is checked and the Photo Location is the Default Location. 3. The Faculty Photo checkbox is checked...
  • 50
  • 537
  • 0
Practical Database Programming With Visual C#.NET- P10

Practical Database Programming With Visual C#.NET- P10

Cơ sở dữ liệu

... logForm.getLogInForm(); accCommand.Connection = logForm.accConnection; accCommand.CommandType = CommandType.Text; accCommand.CommandText = cmdString; accCommand.Parameters.Add("@name", OleDbType.Char).Value ... AccessInsertRTObject.sln • AccessInsertRTObject.csproj • AccessInsertRTObject.exe • AccessInsertRTObject.pdb • AccessInsertRTObject.cshost.exe • AccessInsertRTObject.xml To rename the last ... faculty without any photo accompanying with that insertion. 2. The Faculty Photo checkbox is checked, and the Photo Location is the Default Location. 3. The Faculty Photo checkbox is checked,...
  • 50
  • 565
  • 0
Practical Database Programming With Visual C#.NET- P11

Practical Database Programming With Visual C#.NET- P11

Cơ sở dữ liệu

... Deleting with Visual C #. NET Practical Database Programming With Visual C# .NET, by Ying BaiCopyright © 2010 the Institute of Electrical and Electronics Engineers, Inc.551 In this chapter, ... if (CourseInfo[pos] == String.Empty) check++; } return check; } private void cmdBack_Click(object sender, EventArgs e) { this.Close(); } private void cmdCancel_Click(object sender, ... string cmdString = "InsertCourse"; int intInsert = 0;OracleCommand oraCommand = new OracleCommand(); oraCommand.Connection = oraConnection; oraCommand.CommandType = CommandType.StoredProcedure;...
  • 50
  • 808
  • 0
Practical Database Programming With Visual C#.NET- P12

Practical Database Programming With Visual C#.NET- P12

Cơ sở dữ liệu

... CommandType.StoredProcedure; accCommand.CommandText = cmdString; accCommand.Parameters.Add("FacultyName", OleDbType.Char).Value = ComboName.Text; intDelete = accCommand.ExecuteNonQuery(); accCommand.Dispose(); ... DBProjects\Chapter 7 located at the accompanying ftp site (see Chapter 1 ). Course Table course_id StudentCourse Table course_id course_id=CSC-132Bcourse_id=CSC-234A course_id=CSE-434 course_id=CSE-438 ... this record?", "Delete", vbButton); if (Answer == System.Windows.Forms.DialogResult.Yes) { accCommand.Connection = logForm.accConnection; accCommand.CommandType = CommandType.StoredProcedure;...
  • 50
  • 632
  • 0
Practical Database Programming With Visual C#.NET- P13

Practical Database Programming With Visual C#.NET- P13

Cơ sở dữ liệu

... protected void cmdBack_Click(object sender, EventArgs e) { Response.Redirect("Selection.aspx"); } Faculty cmdBack_Click() Figure 8.22 Coding for the Back button ’ s method. c0 8.indd ... protected void cmdExit_Click(object sender, EventArgs e) { if (((SqlConnection)Application["sqlConnection"]).State == ConnectionState.Open) ((SqlConnection)Application["sqlConnection"]).Close(); ... string strCourse = "SELECT Course.course_id, Course.course FROM Course JOIN Faculty "; strCourse += "ON (Course.faculty_id LIKE Faculty.faculty_id) AND (Faculty.faculty_name...
  • 50
  • 617
  • 0
Practical Database Programming With Visual C#.NET- P14

Practical Database Programming With Visual C#.NET- P14

Cơ sở dữ liệu

... OracleCommand(); int intDelete = 0; oraCommand.Connection = (OracleConnection)Application["oraConnection"]; oraCommand.CommandType = CommandType.StoredProcedure; oraCommand.CommandText ... StudentCourse Table s_course_id student_id course_id credit major1005 J77896 CSC-234A 3 CS/IS 1009 A78835 CSE-434 3 CE 1014 A78835 CSE-438 3 CE 1016 A97850 CSC-132B 3 ISE 1017 A97850 CSC-234A ... sqlCommand.Connection = (SqlConnection)Application["sqlConnection"]; sqlCommand.CommandType = CommandType.Text; sqlCommand.CommandText = cmdString; UpdateParameters(ref sqlCommand);...
  • 50
  • 561
  • 0
Practical Database Programming With Visual C#.NET- P15

Practical Database Programming With Visual C#.NET- P15

Cơ sở dữ liệu

... protected SqlConnection SQLConn() { string cmdString = ConfigurationManager.ConnectionStrings["sql_conn"].ConnectionString; SqlConnection conn = new SqlConnection(); conn.ConnectionString ... ConfigurationManager.ConnectionStrings["sql_conn"].ConnectionString; SqlConnection sqlConnection = new SqlConnection(); sqlConnection.ConnectionString = cmdString; sqlConnection.Open(); if (sqlConnection.State != System.Data.ConnectionState.Open) ... a ConnectionStringSettingsCollection object containing the contents of the ConnectionStringsSection object for the current application ’ s default confi guration, and a ConnectionStringsSection...
  • 50
  • 544
  • 0
Tài liệu Practical Database Programming With Visual C#.NET- P16 pptx

Tài liệu Practical Database Programming With Visual C#.NET- P16 pptx

Cơ sở dữ liệu

... based client project WinClientSQLInsert. You can copy and paste it into this project. The function of this coding is straightforward and without tricks. Each piece of course data is extracted ... The Command object is initialized with associated data objects such as Connection object, Command text, and Command type. Note that the Command type must be set to the StoredProcedure since ... object is initialized with associated data objects and properties such as Connection object, Command text, and Command type. Also the dynamic parameter @name is assigned with the actual faculty...
  • 50
  • 583
  • 1
Tài liệu Practical Database Programming With Visual C#.NET- P17 docx

Tài liệu Practical Database Programming With Visual C#.NET- P17 docx

Cơ sở dữ liệu

... OracleConnection OracleConn() { string cmdString = ConfigurationManager.ConnectionStrings["ora_conn"].ConnectionString; OracleConnection conn = new OracleConnection(); conn.ConnectionString ... [WebMethod]public OracleInsertBase GetOracleInsertCourse(string CourseID) { string cmdString = "WebSelectCourseSP.SelectCourse"; OracleConnection oraConnection = new OracleConnection(); OracleInsertBase ... Also change the name of our Web Service class, which is located after the accessing mode public class , and the constructor of this class from WebServiceSQLSelect to WebServiceOracleSelect ....
  • 50
  • 590
  • 0
Tài liệu Practical Database Programming With Visual C#.NET- P18 pptx

Tài liệu Practical Database Programming With Visual C#.NET- P18 pptx

Cơ sở dữ liệu

... [WebMethod]publicOracleBase GetOracleCourseDetail(string CourseID) { string cmdString = "WebSelectCourseSP.SelectCourse"; OracleConnectionoraConnection = newOracleConnection(); ... procedure UpdateCourseSP to perform the course updating function. protected OracleConnection OracleConn() { string cmdString = ConfigurationManager.ConnectionStrings["ora_conn"].ConnectionString; ... ConfigurationManager.ConnectionStrings["ora_conn"].ConnectionString; OracleConnection conn = new OracleConnection(); conn.ConnectionString = cmdString; conn.Open(); if (conn.State != System.Data.ConnectionState.Open) {...
  • 31
  • 590
  • 0

Xem thêm