Disconnected Data Access
|
|
- Frederica Lamb
- 6 years ago
- Views:
Transcription
1
2
3
4 Disconnected Data Access
5
6
7
8
9
10
11 string strconnection = ConfigurationManager.ConnectionStrings["MyConn"].ToString(); // Khai báo không tham số SqlConnection objconnection = new SqlConnection(); objconnection.connectionstring = strconnection; // Hoặc khai báo có tham số SqlConnection objconnection = new SqlConnection(strConnection);
12 ConnectionString
13 <connectionstrings> <add name="myconn" connectionstring="data Source=CHUHUONG;Initial Catalog=TestDaTang;Integrated Security=True" providername="system.data.sqlclient"/> </connectionstrings> <appsettings> <add key="myconn" value="server=chuhuong;database=qlbanhang; user id=sa;password=pass2013" /> </appsettings>
14 // Truy xuất chuỗi kết nối trên web.config string strconnection = ConfigurationManager.ConnectionStrings["MyConn"].ToString (); //Hoặc string strconnection= WebConfigurationManager.ConnectionStrings["MyConn"].ToString (); // Hoặc string strconnection= ConfigurationManager.AppSettings["Mycon"];
15 /// Open Database Connection if Closed or Broken if (objconnection.state == ConnectionState.Closed objconnection.state == ConnectionState.Broken) { objconnection.open(); }... objconnection.close();
16
17 // Khai báo không tham số SqlCommand objcommand = new SqlCommand(); // Khai báo có tham số SqlCommand objcommand = new SqlCommand("Select * from tbluser",objconnection);
18
19 public int Insert(string MaDM, string TenDM) { SqlConnection objconnection = new SqlConnection(KetNoi.Chuoiketnoi()); objconnection.open(); SqlCommand objcommand=new SqlCommand("Insert Into DanhMuc (MaDM, TenDM) Values objconnection); try { objcommand.parameters.add("@madm", SqlDbType.NVarChar, 5); objcommand.parameters.add("@tendm", SqlDbType.NVarChar, 50); objcommand.parameters["@madm"].value = MaDM; objcommand.parameters["@tendm"].value = TenDM; return objcommand.executenonquery();} catch { throw; } finally{ objcommand.dispose(); objconnection.close(); objconnection.dispose();} }
20 public int Update(string MaDM, string TenDM) { SqlConnection objconnection = new SqlConnection(KetNoi.Chuoiketnoi()); objconnection.open(); SqlCommand objcommand = new SqlCommand("UpdateDanhMuc)", objconnection); objcommand.commandtype = CommandType.StoredProcedure; try{ objcommand.parameters.addwithvalue("@madm", MaDM); objcommand.parameters.addwithvalue("@tendm", TenDM); return objcommand.executenonquery();} catch { throw;} finally { objcommand.dispose(); objconnection.close(); objconnection.dispose();} }
21 MaDM); SqlDbType.NVarChar, 5); SqlDbType.NVarChar, 50); = MaDM; = TenDM;
22 SqlParameter sqlpraid = new SqlParameter("@ID", SqlDbType.Int); sqlpraid.direction = ParameterDirection.Output; //... objcommand.parameters.add(sqlpraid); objcommand.executenonquery(); int ID =(int)sqlpraid.value;
23
24
25 SqlConnection objconnection = new SqlConnection(KetNoi.Chuoiketnoi()); // Khai báo đối tượng DataAdapter SqlDataAdapter objdataadapter = new SqlDataAdapter(); // Khai báo đối tượng Command SqlCommand objcommand = new SqlCommand(); objcommand.commandtext = "LoadAllDM"; objcommand.connection = objconnection; objcommand.commandtype = CommandType.StoredProcedure; // Thuộc tính SelectCommand chỉ định đến đối tượng Command objdataadapter.selectcommand = objcommand;
26 // Đẩy dữ liệu vào DataSet objdataadapter.fill(objdataset, "TenBang"); // Đẩy dữ liệu vào DataTable objdataadapter.fill(objdatatable);
27 //Bước 1 SqlConnection objconnection = new SqlConnection(KetNoi.Chuoiketnoi()); SqlDataAdapter objdataadapter = new SqlDataAdapter("Select * from tbluser", objconnection); // Bước 2 DataSet objdataset = new DataSet(); objdataadapter.fill(objdataset, "tbluser"); // Bước 3: Code Insert, Update, Delete row objdataset.tables["tbluser"].rows[0].delete(); // Bước 4: automatically create update/delete/insert commands SqlCommandBuilder objcommandbuilder = new SqlCommandBuilder(objDataAdapter); objcommandbuilder.getdeletecommand(); // Bước 5: objdataadapter.update(objdataset);
28
29
30 string strconn = ConfigurationManager.ConnectionStrings["MyConn"].ToString(); SqlConnection objconnection = new SqlConnection(strConn); SqlCommand objcommand=new SqlCommand("SELECT MaDM,TenDM From DANHMUC", objconnection); objconnection.open(); SqlDataReader objdatareader = objcommand.executereader(); if (objdatareader.hasrows) { while (objdatareader.read()) { ListItem item = new ListItem(); item.value = objdatareader.getint32(0).tostring(); item.text = objdatareader.getstring(1); } cbodm.items.add(item); } objconnection.close();
31
32
33
34
35
36
37
38
39
40
41 public DataTable LoadAllDM() { SqlConnection conn = new SqlConnection(KetNoi.Chuoiketnoi()); SqlDataAdapter dad = new SqlDataAdapter(); SqlCommand cm = new SqlCommand("LoadAllDM, conn); cm.commandtype = CommandType.StoredProcedure; dad.selectcommand = cm; DataSet dset = new DataSet(); try { dad.fill(dset, "DanhmucAll"); return dset.tables["danhmucall"]; } catch { throw;} finally { dset.dispose(); dad.dispose(); conn.close(); conn.dispose();} }
42 public DataTable LoadAllDM() { SqlConnection conn = new SqlConnection(KetNoi.Chuoiketnoi()); SqlDataAdapter dad = new SqlDataAdapter(); SqlCommand cm = new SqlCommand("LoadAllDM, conn); cm.commandtype = CommandType.StoredProcedure; dad.selectcommand = cm; DataSet dset = new DataSet(); try { dad.fill(dset, "DanhmucAll"); return dset.tables["danhmucall"]; } catch { throw;} finally { dset.dispose(); dad.dispose(); conn.close(); conn.dispose();} }
43
44
45
46 string strconn = ConfigurationManager.ConnectionStrings["MyConn"].ToString(); SqlConnection objconnection = new SqlConnection(strConn); SqlDataAdapter objdataadapter = new SqlDataAdapter("SELECT MaDM, TenDM From DANHMUC", objconnection); DataTable objdatatable = new DataTable(); objdatatable.tablename = "DANHMUC"; objdatatable.acceptchanges(); objdataadapter.fill(objdatatable); txttendm.text = objdatatable.rows[0]["tendm"].tostring();
47 string strconn = ConfigurationManager.ConnectionStrings["MyConn"].ToString(); SqlConnection objconnection = new SqlConnection(strConn); SqlDataAdapter objdataadapter = new SqlDataAdapter("SELECT MaDM, TenDM From DANHMUC", objconnection); DataTable objdatatable = new DataTable(); objdatatable.tablename = "DANHMUC"; objdatatable.acceptchanges(); objdataadapter.fill(objdatatable); txttendm.text = objdatatable.rows[0]["tendm"].tostring();
48
49 DataTable dtableemployee = new DataTable("Employees"); DataColumn dcolemployeeid = new DataColumn(); dcolemployeeid.datatype= Type.GetType("System.String"); dcolemployeeid.caption = "EmployeeID"; dcolemployeeid.columnname = "EmployeeID"; dcolemployeeid.unique = true; dtableemployee.columns.add(dcolemployeeid); DataRow drowemployee = dtableemployee.newrow(); drowemployee["employeeid"] = "E001"; drowemployee.rowerror = "Có lỗi"; dtableemployee.rows.add(drowemployee); drowemployee = dtableemployee.newrow(); drowemployee["employeeid"] = "E002"; drowemployee.rowerror = "Có lỗi"; dtableemployee.rows.add(drowemployee); GridView1.DataSource = dtableemployee; GridView1.DataBind();
50
51 DataTable dtableemployee = new DataTable("Employees"); DataColumn dcolemployeeid = new DataColumn(); dcolemployeeid.datatype= Type.GetType("System.String"); dcolemployeeid.caption = "EmployeeID"; dcolemployeeid.columnname = "EmployeeID"; dcolemployeeid.unique = true; dtableemployee.columns.add(dcolemployeeid); DataRow drowemployee = dtableemployee.newrow(); drowemployee["employeeid"] = "E001"; drowemployee.rowerror = "Có lỗi"; dtableemployee.rows.add(drowemployee); drowemployee = dtableemployee.newrow(); drowemployee["employeeid"] = "E002"; drowemployee.rowerror = "Có lỗi"; dtableemployee.rows.add(drowemployee); GridView1.DataSource = dtableemployee; GridView1.DataBind();
52
53
54 string strconn = ConfigurationManager.ConnectionStrings["MyConn"].ToString(); SqlConnection objconnection = new SqlConnection(strConn); SqlDataAdapter objdataadapter = new SqlDataAdapter("SELECT MaDM, TenDM From DANHMUC", objconnection); DataSet objdataset = new DataSet(); objdataadapter.fill(objdataset, "DANHMUC"); objdataadapter = new SqlDataAdapter("SELECT * From tbluser", objconnection); objdataadapter.fill(objdataset, "USER"); DataTableCollection objtablecollection=objdataset.tables; foreach (DataTable tbl in objtablecollection) { } cmbten.items.add(tbl.tablename);
55 string strconn = ConfigurationManager.ConnectionStrings["MyConn"].ToString(); SqlConnection objconnection = new SqlConnection(strConn); SqlDataAdapter objdataadapter = new SqlDataAdapter("SELECT MaDM, TenDM From DANHMUC", objconnection); DataSet objdataset = new DataSet(); objdataadapter.fill(objdataset, "DANHMUC"); objdataadapter = new SqlDataAdapter("SELECT * From tbluser", objconnection); objdataadapter.fill(objdataset, "USER"); DataTableCollection objtablecollection=objdataset.tables; foreach (DataTable tbl in objtablecollection) { } cmbten.items.add(tbl.tablename);
56
57 DanhMuc dmsach = new DanhMuc(); DataTable tblsach = dmsach.loadallsp(); GridView1.DataSource = tblsach; GridView1.DataBind(); DataView dviewsach1 = new DataView(tblSach); dviewsach1.sort = "MaDanhMuc DESC"; GridView2.DataSource = dviewsach1; GridView2.DataBind(); DataView dviewsach2 = new DataView(tblSach); dviewsach2.rowfilter = "MaDanhMuc=1"; GridView3.DataSource = dviewsach2; GridView3.DataBind();
58
59 DanhMuc dmsach = new DanhMuc(); DataTable tblsach = dmsach.loadallsp(); GridView1.DataSource = tblsach; GridView1.DataBind(); DataView dviewsach1 = new DataView(tblSach); dviewsach1.sort = "MaDanhMuc DESC"; GridView2.DataSource = dviewsach1; GridView2.DataBind(); DataView dviewsach2 = new DataView(tblSach); dviewsach2.rowfilter = "MaDanhMuc=1"; GridView3.DataSource = dviewsach2; GridView3.DataBind();
60
61
LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS *** ADO.NET
LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS *** ADO.NET Nội dung trình bày Giới thiệu Connected Model Disconnected Model 2 Giới thiệu ADO.NET là một tập các lớp thư viện được sử dụng để truy xuất dữ liệu Thêm/xóa/sửa
More informationỨNG DỤNG AJAX. <input id="xuat" size="" style="width: 184px" type="button" value="xử LÝ" onclick ="Xuly_xuat();" />
Lab04 1. Mục tiêu ỨNG DỤNG AJAX Ứng dụng Ajax vào Website ASP.Net với môi trường Microsoft Visual Studio 2010 Xây dựng ứng dụng web với đối tượng XmlHttpRequest 2. Tạo mới Website Dùng Ajax với đối tượng
More informationAn Introduction to ADO.Net
An Introduction to ADO.Net Mr. Amit Patel Dept. of I.T. .NET Data Providers Client SQL.NET Data Provider OLE DB.NET Data Provider ODBC.NET Data Provider OLE DB Provider ODBC Driver SQL SERVER Other DB
More informationADO.NET ADO.NET. Mô hình.net Framework. ActiveX Data Object.NET (ADO.NET) Công nghệ của MS trên.net Framework ADO.NET
Nội i Dung Tổng Quan vềv Quá trình phát triển Đặc điểm.net Data Provider 1 2 Giới i thiệu u ActiveX Data Object.NET () Công nghệ của MS trên.net Framework Phát triển từ nền tảng ADO Cung cấp các lớp đối
More informationLẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS ADO.NET
LẬP TRÌNH TRÊN MÔI TRƯỜNG WINDOWS ADO.NET Phạm Minh Tuấn pmtuan@fit.hcmuns.edu.vn Nội dung trình bày Giới thiệu Connected Model Disconnected Model Khoa CNTT - ĐH KHTN 08/09/11 Giói thiệu 4 ADO.NET là một
More informationLẬP TRÌNH HƯỚNG SỰ KIỆN
GIỚI THIỆU MÔN HỌC LẬP TRÌNH HƯỚNG SỰ KIỆN Giảng viên: ThS. Phan Thanh Toàn BÀI 7 LẬP TRÌNH CƠ SỞ DỮ LIỆU VỚI ADO.NET Giảng viên: ThS. Phan Thanh Toàn 2 MỤC TIÊU BÀI HỌC Trình bày được các đặc trưng cơ
More informationCập nhật ResultSet trong JDBC
java_jdbc/index.jsp Cập nhật ResultSet trong JDBC Tương tự như khi quan sát dữ liệu trong ResultSet, bạn có thể sử dụng rất nhiều phương thức (có 2 phiên bản cho chỉ mục cột và tên cột) của ResultSet Interface
More informationAdvanced Programming C# Lecture 5. dr inż. Małgorzata Janik
Advanced Programming C# Lecture 5 dr inż. malgorzata.janik@pw.edu.pl Today you will need: Classes #6: Project I 10 min presentation / project Presentation must include: Idea, description & specification
More informationLÂ P TRI NH WEB ASP.NET
Trươ ng Đa i Ho c La c Hô ng 2009-2010 LÂ P TRI NH WEB ASP.NET Ts. Vu Đư c Lung Ks. Phan Hư u Tiê p Chương 6: Building and Managing Website 1 http://lhu.edu.vn LHU Xây dựng và quản lý Website ASP.NET OBJECTS
More informationTÀI LIỆU THỰC HÀNH MÔN CƠ SỞ DỮ LIỆU NÂNG CAO
TÀI LIỆU THỰC HÀNH MÔN CƠ SỞ DỮ LIỆU NÂNG CAO Mục lục Index...2 Tài liệu tham khảo...2 Công cụ...2 Nội dung...2 Cú pháp tạo index...2 Cú pháp chỉnh sửa index...2 Áp đặt tính duy nhất trên cột không khóa...3
More informationKhối: Cao Đẳng nghề và Trung Cấp Năm 2009
Hướng Dẫn Thực Hành Lập Trình Windows Nâng Cao Khối: Cao Đẳng nghề và Trung Cấp Năm 2009 Hướng dẫn: Bài tập thực hành được chia làm nhiều Module Mỗi Module được thiết kế cho thời lượng là 3 tiết thực hành
More informationĐỌC, GHI XML VỚI C# TRONG ADO.NET --- SỬ DỤNG VISUAL STUDIO
TRUNG TÂM TIN HỌC ĐẠI HỌC KHOA HỌC TỰ NHIÊN-TP.HCM ĐỌC, GHI XML VỚI C# TRONG ADO.NET --- SỬ DỤNG VISUAL STUDIO 2010 --- 1 TRUNG TÂM TIN HỌC ĐẠI HỌC KHOA HỌC TỰ NHIÊN-TP.HCM Nội dung 1. Tổng quan về v XML
More informationPLATFORM TECHNOLOGY UNIT-4
VB.NET: Handling Exceptions Delegates and Events - Accessing Data ADO.NET Object Model-.NET Data Providers Direct Access to Data Accessing Data with Datasets. ADO.NET Object Model ADO.NET object model
More informationBài 7: Đối tượng Data Source -Đóng gói ứng dụng - Giới thiệu các kĩ thuật lập trình ASP.NET nâng cao
Bài 7: Đối tượng Data Source -Đóng gói ứng dụng - Giới thiệu các kĩ thuật lập trình ASP.NET nâng cao Hệ thống bài cũ Các nội dung đã học trong bài trước Giới thiệu các điều khiển hiển thị dữ liệu Điều
More informationAccessing Databases 7/6/2017 EC512 1
Accessing Databases 7/6/2017 EC512 1 Types Available Visual Studio 2017 does not ship with SQL Server Express. You can download and install the latest version. You can also use an Access database by installing
More informationBài thực hành 1: Chỉ mục trong SQL Server
Bài thực hành 1: Chỉ mục trong SQL Server Mô tả Mục đích của bài thực hành: Giúp cho người học nắm được kiến thức cơ bản về chỉ mục trong SQL Server. Cách tạo, huỷ bỏ chỉ mục. Hiệu quả của việc tạo chỉ
More informationCông nghệ.net.net Technology. Lương Trần Hy Hiến. Bộ môn Hệ thống Thông tin Khoa Công Nghệ Thông Tin Trường ĐHSP TP. Hồ Chí Minh
Công nghệ.net.net Technology Lương Trần Hy Hiến Bộ môn Hệ thống Thông tin Khoa Công Nghệ Thông Tin Trường ĐHSP TP. Hồ Chí Minh Chương 4: Gắn kết dữ liệu Data Binding Nội dung chính ADO.NET DataBinding
More informationADO.NET for Beginners
Accessing Database ADO.NET for Beginners Accessing database using ADO.NET in C# or VB.NET This tutorial will teach you Database concepts and ADO.NET in a very simple and easy-to-understand manner with
More informationKiến trúc của ADO.NET và Các đối tượng
Kiến trúc của ADO.NET và Các đối tượng Bởi: Khoa CNTT ĐHSP KT Hưng Yên Khi phát triển các ứng dụng trên nền web thì công việc chủ yếu phải giải quyết là xử lý các nghiệp vụ, trong đó phần lớn là xử lý
More informationBộ môn HTMT&TT, Khoa Công Nghệ Thông Tin và TT, ĐH Cần Thơ
RPC và RMI Khái niệm RPC Khái niệm RMI Các bước cài đặt RMI trong Java Ví dụ về RMI 1 RPC (Remote Procedure Call) Khái niệm RPC: gọi thủ tục ở xa. Trong suốt về mặt ngữ nghĩa: gọi thủ tục ở xa cũng có
More informationLecture 10: Database. Lisa (Ling) Liu
Chair of Software Engineering C# Programming in Depth Prof. Dr. Bertrand Meyer March 2007 May 2007 Lecture 10: Database Lisa (Ling) Liu Database and Data Representation Database Management System (DBMS):
More informationDatabase Programming with Visual Basic.NET, Second Edition CARSTEN THOMSEN
Database Programming with Visual Basic.NET, Second Edition CARSTEN THOMSEN Database Programming with Visual Basic.NET, Second Edition Copyright 2003 by Carsten Thomsen All rights reserved. No part of this
More informationException/Error Handling in ASP.Net
Exception/Error Handling in ASP.Net Introduction Guys, this is not first time when something is written for exceptions and error handling in the web. There are enormous articles written earlier for this
More informationEntity Framework (EF)
Entity Framework (EF) Lịch sử ra đời Các khái niệm cơ bản Kiến trúc EF DB First/Model First Code First/Code Second Kế thừa Eager/Lazy & Explicit Loading Performance/Profiling Tạ Hoàng Thắng 1 Model First
More informationCHƯƠNG 2: CÁC ĐẶC ĐIỂM VỀ MÔI TRƯỜNG PHÁT TRIỂN (IDE)
CHƯƠNG 2: CÁC ĐẶC ĐIỂM VỀ MÔI TRƯỜNG PHÁT TRIỂN (IDE) Phan Trọng Tiến BM Công nghệ phần mềm Khoa Công nghệ thông tin, VNUA Email: phantien84@gmail.com Website: http://timoday.edu.vn Ch2- Cac dac diem moi
More informationExceptions. Outline 7/31/2012. Exceptions. Exception handling is an important aspect of objectoriented. Chapter 10 focuses on:
Exceptions Exceptions Exception handling is an important aspect of objectoriented design Chapter 10 focuses on: the purpose of exceptions exception messages the try-catch statement propagating exceptions
More informationCẤU TRÚC DỮ LIỆU NÂNG CAO
CẤU TRÚC DỮ LIỆU NÂNG CAO Các kiến thức yêu cầu Tóm tắt nội dung môn học Phương pháp kiểm tra đánh giá Tài liệu tham khảo 1 Các kiến thức yêu cầu Các thuật toán và cấu trúc dữ liệu cơ bản Ngôn ngữ lập
More informationADO.NET.NET Data Access and Manipulation Mechanism. Nikita Gandotra Assistant Professor, Department of Computer Science & IT
ADO.NET.NET Data Access and Manipulation Mechanism Nikita Gandotra Assistant Professor, Department of Computer Science & IT Overview What is ADO.NET? ADO VS ADO.NET ADO.NET Architecture ADO.NET Core Objects
More informationHướng dẫn cài đặt FPT
Hướng dẫn cài đặt Email FPT ---X--- Cài đặt email @FPT.VN bằng phần mềm Thunder Bird Bước 1: Mở Thunder Bird, chọn Tools >> Account Setting Bước 2: Tại Account Setting, chọn Account Actions >> Add Mail
More informationGVHD: Dương Khai Phong Website:
GVHD: Dương Khai Phong Email: khaiphong@gmail.com Website: http://khaiphong.tk http://course.uit.edu.vn 1/ Giới thiệu tổng quan Web 2/ Ngôn ngữ HTML và JavaScript 3/ Ngôn ngữ PHP căn bản 4/ Các đối tượng
More informationBÀI 1: VBA LÀ GÌ? TẠO MACRO, ỨNG DỤNG CÁC HÀM TỰ TẠO (UDF), CÀI ĐẶT ADD-INS VBA là gì?
BÀI 1: VBA LÀ GÌ? TẠO MACRO, ỨNG DỤNG CÁC HÀM TỰ TẠO (UDF), CÀI ĐẶT ADD-INS VBA là gì? Nguyễn Duy Tuân: 0904.210.337 1/12 Macro là gì? Macro là một lệnh lệnh thực thi một hay nhiều thao tác người dùng
More informationÔn tập Thiết bị mạng và truyền thông DH07TT - Lưu hành nội bộ (không sao chép dưới mọi hình thức)
1 Câu 1: Tầng Internet có những giao thức nào? A. ICMP (Internet Control Message Protocol) B. IP (Internet Protocol) C. IGMP (Internet Group Messages Protocol) D. Cả 3 giao thức trên Tầng Liên Mạng (Internet
More informationKhoa Công Nghệ Thông Tin Trường Đại Học Cần Thơ. Những hỗ trợ tiên tiến khác của SQL. Đỗ Thanh Nghị
Khoa Công Nghệ Thông Tin Trường Đại Học Cần Thơ Những hỗ trợ tiên tiến khác của SQL Đỗ Thanh Nghị dtnghi@cit.ctu.edu.vn Cần Thơ 24-04-2005 Nội dung 2 3 Định nghĩa kế thừa CREATE TABLE Hỗ trợ cho định nghĩa
More informationTình huống 1: PPPoE với Username và Password
HƯỚNG DẪN CẤU HÌNH NHANH INTERNET (Vigor2912 / Vigor2925) Tình huống 1: PPPoE với Username và Password - CTY có một đường truyền cáp quang. - Nhà mạng đã cho mượn Converter quang và router - Router đó
More informationLab01: M V C Lưu ý: Để thực hành, các bạn phải cài Visual Studio 2013 trở lên mới hỗ trợ MVC5.
Lab01: M V C Lưu ý: Để thực hành, các bạn phải cài Visual Studio 2013 trở lên mới hỗ trợ MVC5. 1 Mục đích Giới thiệu mô hình MVC Model, Controller, View Phân biệt ViewData, ViewBag, TempData 2 Khởi động
More informationTài liệu hướng dẫn: Stored Procedure
1 Tài liệu hướng dẫn: Stored Procedure Tài liệu hướng dẫn: Stored Procedure Người thực hiện Hoàng Anh Tú Nội dung 1 Giới thiệu... 2 2 Stored Procedure cơ bản... 2 2.1 Tạo Stored Procedure... 3 2.1.1 Tạo
More informationMỤC LỤC. Giáo trình Thiết kế web Trang 1
NỘI DUNG MỤC LỤC TRANG LỜI NÓI ĐẦU... 3 TÀI LIỆU THAM KHẢO... 4 BÀI 1: GIỚI THIỆU TỔNG QUAN VỀ DREAMWEAVER... 5 I. GIỚI THIỆU... 5 II. CÁC THAO TÁC CĂN BẢN TRONG DREAMWEAVER... 5 III. ĐỊNH DẠNG GIAO DIỆN
More informationBài 6: Xuất nhập (input/output) EE3490: Kỹ thuật lập trình HK1 2017/2018 TS. Đào Trung Kiên ĐH Bách khoa Hà Nội
Bài 6: Xuất nhập (input/output) 1 Khái niệm Người lập trình thường xuyên phải làm việc với một số thiết bị vào ra như màn hình, bàn phím, file, máy in, Với mỗi chương trình, có: Đầu ra chuẩn stdout: mặc
More informationSTEP 1: CREATING THE DATABASE
Date: 18/02/2013 Procedure: Creating a simple registration form in ASP.NET (Programming) Source: LINK Permalink: LINK Created by: HeelpBook Staff Document Version: 1.0 CREATING A SIMPLE REGISTRATION FORM
More informationLab 08: LẬP TRÌNH WINDOWS FORM KẾT NỐI CSDL NÂNG CAO
Lab 08: LẬP TRÌNH WINDOWS FORM KẾT NỐI CSDL NÂNG CAO A. MỤC TIÊU: Hướng dẫn sinh viên làm quen với việc xây dựng ứng dụng Windows App có kết nối với CSDL SQL Server. Sử dụng công nghệ kết nối CSDL ADO.Net
More informationOnline Appointment System will work better with below conditions/ Hệ thống đặt hẹn online sẽ hoạt động tốt hơn với điều kiện sau đây:
Online Appointment Link/ Link đặt hẹn online: http://www.vfsglobal.com/netherlands/vietnam/schedule-an- Appointment.html ( Using for applicants who wish to apply for The Netherlands visas at VFS Netherlands
More informationSIEMENS INDUSTRIAL NETWORKS
SIEMENS INDUSTRIAL NETWORKS 1 ASI NETWORK INTRODUCTION Number of slaves Up to 62 Number of I/Os Up to 496 inputs and 496 outputs Medium Line length Cycle time Data transfer Unshielded two-wire line for
More informationBELGIUM ONLINE APPOINTMENT
BELGIUM ONLINE APPOINTMENT Online Appointment Link/ Link đặt hẹn online: http://www.vfsglobal.com/belgium/vietnam/vietnamese/schedule-anappointment.html Using for applicants who wish to apply for Belgium
More informationHTML DOM - Forms. MSc. nguyenhominhduc
HTML DOM - Forms MSc. nguyenhominhduc Đối tượng form Form là một thành phần dùng để thu thập dữ liệu, thông tin từ người dùng. Mỗi phần tử trong form là một đối tượng trong DOM. Do đó mỗi phần tử trên
More informationMột số vấn đề cần quan tâm Nguyễn Duy Hải TT CNTT-ĐHSP Hà Nội
Một số vấn đề cần quan tâm Nguyễn Duy Hải TT CNTT-ĐHSP Hà Nội Nội dung XML Lập trình AJAX RSS RDF Một số chức năng XML Giới thiệu XML = extensible Markup Language XML được thiết kếđểmiêu tả dữ liệu, tập
More informationADO.NET in Visual Basic
ADO.NET in Visual Basic Source code Download the source code of the tutorial from the Esercitazioni page of the course web page http://www.unife.it/ing/lm.infoauto/sistemiinformativi/esercitazioni Uncompress
More informationCài đặt và cấu hình StarWind iscsi trên Windows. iscsi SAN là gì?
iscsi SAN là gì? iscsi là Internet SCSI ( Small Computer System Interface ) là một chuẩn công nghiệp phát triển để cho phép truyền tải các lệnh SCSI qua mạng IP hiện có bằng cách sử dụng giao thức TCP/IP.
More informationBài tập căn bản Visual Basic.Net Vòng lặp. txtn. txtketqua. btntinh. txtn. txtketqua. btntinh. Trang 1
1. Tính n! Ví dụ: 5!= 1 * 2 * 3 * 4 * 5 = 120 Thiết kế form theo mẫu hoặc tự thiết kế theo ý thích. Chú ý nếu đặt tên các control khác với hình bên dưới thì cần sửa lại code cho phù hợp. btntinh Doube
More informationbiến Global có thể được áp dụng cho tất cả các extension trong tất cả các context trong Dialplan.
Sử dụng biến trong Dialplan có ba loại biến được sử dụng: Global, channel, enviroment. biến Global có thể được áp dụng cho tất cả các extension trong tất cả các context trong Dialplan. Biến Global thường
More informationSIMULATE AND CONTROL ROBOT
SIMULATE AND CONTROL ROBOT CÁC BƯỚC THỰC HIỆN MÔ PHỎNG ĐIỀU KHIỂN ROBOT: Vẽ lại mô hình robot trong PRO_E 4.0. Liên kết mô hình với phần MATHLAB 2008. Xây dựng giao diện MATHLAB để điều khiển các mô hình.
More informationKhối: Cao Đẳng nghề và Trung Cấp Năm 2009
Hướng Dẫn Thực Hành Lập Trình Windows Khối: Cao Đẳng nghề và Trung Cấp Năm 2009 Hướng dẫn: Bài tập thực hành được chia làm nhiều Module Mỗi Module được thiết kế cho thời lượng là 3 tiết thực hành tại lớp
More informationKích hoạt phương thức xa (RMI- Remote Method Invocation )
Kích hoạt phương thức xa (RMI- Remote Method Invocation ) Bởi: unknown Kích hoạt phương thức xa (RMI- Remote Method Invocation ) Giới thiệu RMI là một sự cài đặt cơ chế RPC trong ngôn ngữ lập trình hướng
More informationLập trình C++ Buổi 2. Biến, kiểu dữ liệu, phép toán
Lập trình C++ Buổi 2. Biến, kiểu dữ liệu, phép toán CodePower - 2017 Nội dung buổi học 1. Biến và khai báo biến, hằng số 2. Các kiểu dữ liệu cơ bản 3. Các phép toán, biểu thức 2 Bộ nhớ máy tính Bộ nhớ:
More informationChuyên đề: Phát triển ứng dụng phân bố Java Eclipse J2EE 3.5 IDE, GlassFish Server, MySQL
2010 STU Chuyên đề: Phát triển ứng dụng phân bố Java Eclipse J2EE 3.5 IDE, GlassFish Server, MySQL Th.s Hồ H Đình Khả Công cụ phát triển ứng dụng MySQL database server Server: GlassFish (SUN), JBOSS, Apache
More informationĐỀ CƯƠNG CHI TIẾT HỌC PHẦN
BM01.QT02/ĐNT-ĐT TRƯỜNG ĐH NGOẠI NGỮ - TIN HỌC TP.HCM KHOA CÔNG NGHỆ THÔNG TIN CỘNG HÒA XÃ HỘI CHỦ NGHĨA VIỆT NAM Độc lập Tự do Hạnh Phúc 1. Thông tin chung về học phần ĐỀ CƯƠNG CHI TIẾT HỌC PHẦN - Tên
More informationHƯỚNG DẪN QUẢN TRỊ HỆ THỐNG
Lab 07: HƯỚNG DẪN QUẢN TRỊ HỆ THỐNG MỤC TIÊU: Hướng dẫn gười dùng sử dụng các chức năng quản trị các trang hệ thống System NỘI DUNG: 1. Menu My Count Đây là menu để xem và cập nhật thông tin của user admin.
More informationHướng Dẫn Thực Hành Tập tin & Thư mục
Hướng Dẫn Thực Hành Tập tin & Thư mục 1 Thư mục: - Lớp Directory chứa phương thức dành cho việc tạo, di chuyển, duyệt thư mục. - Lớp DirectoryInfo là lớp tương tự như lớp Directory. Nó cung các tất cả
More informationChapter 4 Menus, Functions And Common Dialog
Chapter 4 Menus, Functions And Common Dialog Programming In C Sharp METHODS PHƯƠNG THỨC Phương thức là một tập hợp trình tự các câu lệnh thực hiện được đặt tên. Mỗi phương thức sẽ có một tên và thân phương
More informationHƯỚNG DẪN SỬ DỤNG PLESK PANEL
HƯỚNG DẪN SỬ DỤNG PLESK PANEL Trang 1 I. HƯỚNG DẪN ĐĂNG NHẬP 1. Đăng nhập hệ thống Plesk: Để đăng nhập vào hệt thống plesk panel thực hiện các bước sau(hình 1): - Trên trình duyệt web gõ vào địa chỉ: https://ip:8443
More informationLỖI LÚC THỰC THI và QUÁ TRÌNH GOM RÁC
LỖI LÚC THỰC THI và QUÁ TRÌNH GOM RÁC Exception Garbage Collection Slide 1/41 1 Mục tiêu! Giải thích được lỗi cú pháp và lỗi thực thi chương trình.! Giải thích được mô hình đối tượng Exception của Java.!
More informationTÀI LIỆU HƯỚNG DẪN SỬ DỤNG HOSTING PLESK PANEL
Fall 08 CÔNGTYCỔPHẦNVIỄNTHÔNGFPT CÔNGTYTNHHMTVVIỄNTHÔNGQUỐCTẾFPT TÀILIỆUHƯỚNGDẪNSỬDỤNG HOSTING PLESKPANEL C T Y T N H H M T V F T I / F P T T E L E C O M MỤC LỤC I. HƯỚNG DẪN ĐĂNG NHẬP...2 1. Đăng nhập
More informationSQL Căn Bản. Giới thiệu về SQL. Mục lục. - Câu lệnh SELECT
Mục lục SQL căn bản - Giới thiệu về SQL - Câu lệnh SELECT - Mệnh đề WHERE - Toán tử lô-gic AND và OR - Toán tử BETWEEN...AND - DISTINCT - ORDER BY - Câu lệnh INSERT - Câu lệnh UPDATE - Câu lệnh DELETE
More informationKỹ thuật thu nhỏ đối tượng trong Design (Layout)
Kỹ thuật thu nhỏ đối tượng trong Design (Layout) Viết bởi : Steve Smith http://smith9x.wordpress.com - Kỹ thuật này do mình tự nghĩ ra, đơn giản hóa cụ thể như sau : + Ta sẽ thiết kế các đối tượng lớn
More informationBÀI TẬP THỰC HÀNH LẬP TRÌNH WINDOWS C#
BỘ GIÁO DỤC VÀ ĐÀO TẠO TRƯỜNG ĐẠI HỌC SƯ PHẠM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN http://www.hcmup.edu.vn BÀI TẬP THỰC HÀNH LẬP TRÌNH WINDOWS C# Phần 1: Làm quen với ứng dụng Form 1. Bài tập mở đầu 1.1. Khởi
More informationData Access Standards. ODBC, OLE DB, and ADO Introduction. History of ODBC. History of ODBC 4/24/2016
Data Access Standards ODBC, OLE DB, and ADO Introduction I Gede Made Karma The reasons for ODBC, OLE DB, and ADO are to provide a standardized method and API for accessing and manipulating Data from different
More informationBài thực hành số 2 QUYỀN và ROLE
Bài thực hành số 2 QUYỀN và ROLE Tóm tắt nội dung: Quyền (privilege) Role Data Dictionary I. A. Lý thuyết 1. Quyền (privilege) Một quyền là 1 sự cho phép thực hiện 1 câu lệnh SQL nào đó hoặc được phép
More informationGiao tiếp giữa các tiến trình
Hệ điều hành Bài tập Tuần 3 1 Giao tiếp giữa các tiến trình Bài tập 1 : Một tiến trình có thể gửi tới một tiến trình khác một Signal. Các Signal phần lớn được gửi đi từ kernel khi một sự kiện xảy ra, ví
More informationReal4Test. Real IT Certification Exam Study materials/braindumps
Real4Test http://www.real4test.com Real IT Certification Exam Study materials/braindumps Exam : 70-561-Csharp Title : TS:MS.NET Framework 3.5,ADO.NET Application Development Vendors : Microsoft Version
More informationTHAO TÁC VỚI TẬP TIN TRONG C++
Đại học Quốc Gia Thành phố Hồ Chí Minh Trường Đại học Khoa Học Tự Nhiên Khoa Công Nghệ Thông Tin Hướng dẫn THAO TÁC VỚI TẬP TIN TRONG C++ Tháng 9/2011 1 Phân loại Tập tin là hình thức lưu trữ phổ biến
More information2.4. GIAO THỨC MQTT Các khái niệm cơ bản MQTT được phát triển bởi IBM và Eurotech, phiên bản mới nhất là MQTT 3.1 MQTT (Giao vận tầm xa) là
2.4. GIAO THỨC MQTT 2.4.1. Các khái niệm cơ bản MQTT được phát triển bởi IBM và Eurotech, phiên bản mới nhất là MQTT 3.1 MQTT (Giao vận tầm xa) là giao thức truyền message theo mô hình cung cấp/thuê bao
More informationChương 7. Application Layer. Tài liệu : Forouzan, Data Communication and Networking
Chương 7 Application Layer Tài liệu : Forouzan, Data Communication and Networking 1 Các ứng dụng mạng Network Applications Là những chương trình chạy trên những đầu cuối khác nhau, giao tiếp với nhau thông
More informationBài 9: Kế thừa (Inheritance) EE3490: Kỹ thuật lập trình HK1 2017/2018 TS. Đào Trung Kiên ĐH Bách khoa Hà Nội
Bài 9: Kế thừa (Inheritance) 1 Khái niệm Để quản lý nhân sự của công ty, ta có thể định nghĩa các lớp tương ứng với các vị trí làm việc của công ty: class Worker { private: string name; float salary; int
More informationChương 6. Transport Layer. Tài liệu : Forouzan, Data Communication and Networking
Chương 6 Transport Layer Tài liệu : Forouzan, Data Communication and Networking 1 Transport Layer Nội dung Đặc trưng của tầng transport Port number Multiplexing và Demultiplexing Connectionless Service
More informationPHÁT TRIỂN ỨNG DỤNG WEB
Bài giảng PHÁT TRIỂN ỨNG DỤNG WEB Lê Đình Thanh Bộ môn Mạng và Truyền thông Máy tính Khoa Công nghệ Thông tin Trường Đại học Công nghệ, ĐHQGHN E-mail: thanhld@vnu.edu.vn, thanhld.vnuh@gmail.com Mobile:
More informationPREPARATION. Install MyGeneration and add the doodads project to your solution
PREPARATION Database Design Tips (MS SQL Server) 1. For each table, use a single identity column as the primary key. 2. For each table, add a column named "RowVersion" with a datatype of timestamp. (doodads
More informationQu n ả tr h ố g t p ậ tin
Quản tr ị h ệ thống tập tin Đặng Thanh Bình Contents Kiến trúc hệ thống tập tin FHS Hệ thống tập tin nhật ký Không gian hoán chuyển Quản trị tập tin cơ bản 2 Introduction File system đề cập đến các tập
More informationMô hình dữ liệu quan hệ (Relational data model)
Mô hình dữ liệu quan hệ (Relational data model) 1 Nội dung 1. Mô hình dữ liệu quan hệ (Relational data model) 2. Phép toán tập hợp (Set Operation) 3. Phép toán đại số quan hệ (Relational Algebra Operation)
More informationHƯỚNG DẪN CÀI ĐẶT PHẦN MỀM DIỆT VIRUS AVIRA
HƯỚNG DẪN CÀI ĐẶT PHẦN MỀM DIỆT VIRUS AVIRA A V I R A A N T O À N H Ơ N Trang 1 Mục lục 1. Trước khi cài đặt... 3 1.1 Kiểm tra khả năng đáp ứng của hệ thống:... 3 1.2 Hướng dẫn nâng cấp:... 3 1.3 Hướng
More informationif (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient;
More informationLẬP TRÌNH WINDOWS FORM VỚI CÁC CONTROL NÂNG CAO (Các control trình bày dữ liệu dưới dạng danh sách)
Lab 04: LẬP TRÌNH WINDOWS FORM VỚI CÁC CONTROL NÂNG CAO (Các control trình bày dữ liệu dưới dạng danh sách) A. MỤC TIÊU: Sử dụng Visual Studio.NET 2010/2012/2013 tạo ứng dụng dạng Windows Forms với các
More informationLAB IP SLA Bài 1. Bùi Quốc Kỳ ***
LAB IP SLA Bài 1 Bùi Quốc Kỳ *** Yêu cầu: 1. Cấu hình cơ bản trên các thiết bị. 2. Routing: Cấu hình định tuyến tĩnh Static Route trên các thiết bị đảm bảo mạng hội tụ. 3. PAT: Cấu hình PAT (NAT Overload)
More informationTime Picker trong Android
Time Picker trong Android Time Picker trong Android cho phép bạn lựa chọn thời gian của ngày trong chế độ hoặc 24 h hoặc AM/PM. Thời gian bao gồm các định dạng hour, minute, và clock. Android cung cấp
More informationLàm việc với Database
1. Schema 2. Migrate 3. Seed 4. Query Builder 5. Eloquent - Model 6. Liên kết dữ liệu trong Laravel Làm việc với Database Kết nối với cơ sở dữ liệu trong laravel Mở file.env DB_HOST=localhost DB_DATABASE=
More informationTẦNG MẠNG IP và ĐỊNH TUYẾN. GV: MAI Xuân Phú Khoa Công Nghệ Thông Tin Đại Học Công Nghiệp TPHCM
TẦNG MẠNG IP và ĐỊNH TUYẾN GV: MAI Xuân Phú xuanphu150@gmail.com Khoa Công Nghệ Thông Tin Đại Học Công Nghiệp TPHCM 1 Nội dung Giao thức tầng mạng Internet Protocol Địa chỉ IP Các giao thức điều khiển
More informationHƯỚNG DẪN SỬ DỤNG HỆ THỐNG CẬP NHẬT CHỨNG THƯ SỐ HOTLINE:
HƯỚNG DẪN SỬ DỤNG HỆ THỐNG CẬP NHẬT CHỨNG THƯ SỐ HOTLINE: 19006276 Ngày phát hành : 03/08/2017 Nơi phát hành : Công ty CP Chữ ký số Vi Na Phiên bản : 2.0 1 Mục lục 1 Các thuật ngữ viết tắt... 3 2 Môi trường
More informationINTENT. ImageView là thành phần giúp hiển thị một hình ảnh lên giao diện người dùng. Để đặt hình ảnh cho nó ta sử dụng một trong các phương thức sau:
INTENT 1 Nội dung: - Làm quen và sử dụng Intent chuyển đổi giữa các màn hình. - Sử dụng AlertDialog.Builder cho phép hỏi đáp với người dùng. - Truyền dữ liệu từ Activity con về Activity cha. - Sử dụng
More information// handle of dialog box
GetDlgItemText / GetDlgItemTextA / GetDlgItemTextW Hàm GetDlgItemText có nhiệm vụ tìm title hoặc text kết hợp với control trong dialog box UINT GetDlgItemText( HWND hdlg, int niddlgitem, LPTSTR lpstring,
More informationHệ điều hành Bài tập tuần 7_ Chúng ta làm quen một số lệnh thao tác với hệ thống file trong Linux :
Hệ điều hành Bài tập tuần 7_8 1 FILE SYSTEM Bài tập 1 : các lệnh quản lý hệ thống file trong Linux 1. Chúng ta làm quen một số lệnh thao tác với hệ thống file trong Linux : - Tạo thư mục mkdir mkdir /tmp/test
More informationChương 5: NGĂN XẾP HÀNG ĐỢI (Stack - Queue)
1 Chương 5: NGĂN XẾP HÀNG ĐỢI (Stack - Queue) Nội dung 2 Ngăn xếp (Stack) Hàng Khái đợi niệm Stack Các thao tác trên Stack Hiện thực Stack Ứng dụng của Stack Hàng đợi Stack - Khái niệm 3 Stack là một danh
More informationTính kế thừa-2. Bởi: Thanh Hiền Vũ. Định nghĩa lại các thành viên lớp cơ sở trong một lớp dẫn xuất:
Tính kế thừa-2 Bởi: Thanh Hiền Vũ Định nghĩa lại các thành viên lớp cơ sở trong một lớp dẫn xuất: Một lớp dẫn xuất có thể định nghĩa lại một hàm thành viên lớp cơ sở. Điều này được gọi là overriding. Khi
More informationLập trình chuyên nâng cao. Lập trình phân tán (Distributed computing
Mục tiêu Lập trình chuyên nâng cao Chương V Lập trình phân tán RMI Biên soạn: ThS Nguyễn Văn Lành Hoàn thành chương nầy, sinh viên phải đạt được những điểm sau: Nhận thức được các thách thức và giải pháp
More informationLINQ TO SQL & ASP.NET
Chương 13 LINQ TO SQL & ASP.NET Sau khi học xong bài này, học viên có khả năng : - Xây dựng được ứng dụng ASP.NET tương tác với Cơ sở dữ liệu thông qua mô hình 2 tier - Sử dụng được LINQ to Object để truy
More informationBài thực hành số 3 PL/SQL
Bài thực hành số 3 Tóm tắt nội dung: Khái niệm Các vấn đề liên quan đến kiểu dữ liệu trong Hằng và Biến Cấu trúc khối Các câu lệnh điều khiển Xử lý ngoại lệ Procedure và Function Cursor Trigger I. là gì?
More informationKhoa KH & KTMT Bộ môn Kỹ Thuật Máy Tính
dce Khoa KH & KTMT Bộ môn Kỹ Thuật Máy Tính, CE Department dce Tài liệu tham khảo Digital Systems, Principles and Applications, 8 th /5 th Edition, R.J. Tocci, Prentice Hall Digital Logic Design Principles,
More informationMôn Học: Cơ Sở Dữ Liệu 2. Chương 3 LẤY DỮ LIỆU TỪ NHIỀU NGUỒN
Môn Học: Cơ Sở Dữ Liệu 2 Chương 3 LẤY DỮ LIỆU TỪ NHIỀU NGUỒN ThS. NGUYỄN MINH TUẤN Nội dung 3.1. Import/Export dữ liệu 3.2.Các công cụ chuyển dữ liệu (Data Transfer Tools) 3.3. Dịch vụ chuyển và chuyển
More informationChương 24: Liên kết giữa Excel với Visual Basic 6.0
1 Chương này được trích từ cuốn Lập trình VBA trong Excel (Nhà xuất bản thống kê) http://www.giaiphapexcel.com/forum/showthread.php?t=22105 Trước khi tìm hiểu mối quan hệ này, bạn biết rằng Visual Basic
More informationFor this example, we will set up a small program to display a picture menu for a fast food take-away shop.
146 Programming with C#.NET 9 Fast Food This program introduces the technique for uploading picture images to a C# program and storing them in a database table, in a similar way to text or numeric data.
More informationBài Thực hành Asp.Net - Buổi 1 - Trang: 1
Bài 1.1 1. Khởi động VS2010 2. File > News > Web Site, chọn: Visual C# ASP.NET Empty Web Site Chọn vị trí lưu và đặt tên file là Bai1.1 3. Thêm trang mới (Web Form ; tên là Default.aspx) 4. Viết code như
More informationPhạm Hữu Khang (Chủ biên) Hoàng Đức Hải Đoàn Thiện Ngân (Hiệu đính) GIÁO TRÌNH NHẬP L Ậ P T R Ì N H V B 6
MK.PUB Phạm Hữu Khang (Chủ biên) Hoàng Đức Hải Đoàn Thiện Ngân (Hiệu đính) GIÁO TRÌNH NHẬP MÔN L Ậ P T R Ì N H V B 6 í LU,0:1 i NHÀ XUẤT BẢN LAO ĐỘNG XÃ HỘI LỜI NÓI ĐẦU LỜI NÓI ĐẦU Visual Basic 6.0 là
More informationCấu hình Router FTTH ---X---
Cấu hình Router FTTH ---X--- Cấu hình Router FTTH Comtrend CT-820C 1. Một số chú ý với Router trước khi sử dụng Kiểm tra hoạt động của Router bằng cách cắm đủ 3 dây tín hiệu vào Router với các jack tương
More information