... public int Update(Person person) { SqlConnection conn = new SqlConnection(connStr); conn.Open(); SqlCommand dCmd = new SqlCommand("UpdateData", conn); dCmd.CommandType = CommandType.StoredProcedure; ... public int Delete(Person person) { SqlConnection conn = new SqlConnection(connStr); conn.Open(); SqlCommand dCmd = new SqlCommand("DeleteData", conn); dCmd.CommandType = CommandType.StoredProcedure; ... objects for enhancements. Change in the object definition can be done without touching the entire Business Access Layers Let me explain you step-wise process of creatioin of 4-Tier architecture...
Ngày tải lên: 17/10/2013, 14:15
... of the current TcpListener. Returns EndPoint. AcceptSocket() Accepts a pending connection request. Returns Socket. AcceptTcpClient() Accepts a pending connection request. Returns TcpClient. Pending() Determines ... listenerSocket.Bind(ipepServer) listenerSocket.Listen(-1) clientSocket = listenerSocket.Accept() If clientSocket.Connected Then Do bytesReceived = clientSocket.Receive(recv) tbStatus.Text += Encoding.ASCII.GetString(recv) ... topic can be found in Chapter 13. C# public void listenerThread() { TcpListener tcpListener = new TcpListener(8080); tcpListener.Start(); while(true) { Socket handlerSocket = tcpListener.AcceptSocket(); ...
Ngày tải lên: 17/04/2014, 09:17
data entry and validation with c sharp and vb .net windows forms 2003
... access to some screens and other users to have access to other screens. You could easily use CheckBoxes to allow an administrator to check off which screens are allowed for which users. You can ... programmatically. In .NET, when the delegate is called, the object that is defined as the sender is the MenuItem object. In VB 6.0, each menu choice has its own click event. In .NET, you can combine ... specialized collection, as I do in this example? By the way, VB 6.0 programmers should definitely be at home with collections and the foreach construct. Although the collections provided in C# ...
Ngày tải lên: 17/04/2014, 09:16
Network Programming in .NET With C# and Visual Basic .NET phần 4 pdf
Ngày tải lên: 12/08/2014, 21:20
Giải thuật C Sharp.pdf
... nhằm để kiểm tra dầu c thể tiếp t c chảy hay không và m_button thu c CBitmapButton để ta c thể đặt c c bitmap lên button. Do đó 3 mảng c kiểu là một c u tr c gồm c c c biến ‘in’ ‘out’ ‘nen’ ... nhận t c động Click để đặt ống vào, mảng 1 chiều array2[5] hoạt động như một hàng đợi. Một mảng 1 chiều array3[7] dùng để chứa tất c c c loại ống. Mỗi phần tử c a 3 mảng này gồm c c c biến ... và trong chương trình ta c sử dụng phép gán giửa hai phần tử c a mảng vì vậy ta xây dựng một lớp là CMang class CMang : public CWnd { public: CMang(); public: BOOL flag; CBitmapButton...
Ngày tải lên: 23/08/2012, 13:21
Mastering ASP .Net with VB .Net
... http://www.macromedia.com. Netscape Communications, the Netscape Communications logo, Netscape, and Netscape Navigator are trademarks of Netscape Communications Corporation. Netscape Communications Corporation ... approved this publication and is not responsible for its content. Netscape and the Netscape Communications Corporate Logos are trademarks and trade names of Netscape Communications Corporation. All ... standard server process resumes. Classic ASP pages began short- circuiting for pages that contained no code with IIS 5 (ASP version 3.0). Therefore, ASP and ASPX pages that contain no code are only...
Ngày tải lên: 22/10/2013, 15:15
Cách viết một module theo mô hình 3 lớp với ASP.NET và C#
... DataProvider.cs public abstract int PostCount(); SqlDataProvider.cs public override int PostCount() { using (SqlConnection cnn = GetSqlConnection()) { SqlCommand cmd = cnn.CreateCommand(); cmd.CommandType ... public override int PostUpdate(Post post) { using (SqlConnection cnn = GetSqlConnection()) { SqlCommand cmd = cnn.CreateCommand(); cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText ... theo Title dnc.dlu@gmail.com 17 Làm tiếp c c thủ t c còn lại Hướng dẫn: Thủ t c và c c hàm bổ sung Post_Count SP Post_Count CREATE PROCEDURE [Post_Count] AS SELECT COUNT(PostID)...
Ngày tải lên: 09/04/2014, 21:45
lập trình ứng dụng web với asp.net và c#
... Yêu c u xử lý: khi chọn CheckBox thì tự động chọn tất c c c CheckBox trong c t này và ngư c lại (dùng JavaScript) 3.3. C c xử lý tiếp theo trong bài 6.1 M c tiêu: − Load động c c User Control ... thêm c c thành phần trong project (Ho c h c viên c thể tạo mới project kh c) Yêu c u: − Tạo thư m c App_code để lưu trữ c c lớp xử lý ph c vụ cho quá trình làm vi c với CSDL Ghi chú : ... viên c thể cung c p c c lớp xử lý này − Chép tập tin CSDL QL_BANSACH.mdf vào thư m c App_Data ( do giáo viên cung c p) − Tạo một số thư m c cần thiết, c dạng như sau: − Quan hệ giữa c c Table...
Ngày tải lên: 05/07/2014, 17:52
Foundations of ASP.NET AJAX phần 3 pdf
... is accessible via JavaScript. [ScriptService] public class CarService : System.Web.Services.WebService The web service is complete and ready to be invoked from the client; now it’s time to create ... completes successfully and the method to call if it fails. In this case, the function onComplete will be called if the web service call completes successfully, and the function onError will be called ... Running your first ASP. NET AJAX application that uses JavaScript classes and namespaces Using Namespaces and Classes in JavaScript The AJAX core classes (MicrosoftAjax.js) contain the facility to register...
Ngày tải lên: 12/08/2014, 17:20
gdi programming with c sharp phần 1 pptx
... the device context (HDC), which is used by GDI to send information to the device. In GDI+, the concept of device context and handle to the device context is replaced by the Graphics object. The ... the application needs to call the SelectObject function, which takes the device context and pen handle as arguments. Now the application can draw any graphics object. The application calls the ... GDI+Painter Application SUMMARY Chapter 5. Colors, Fonts, and Text Section 5.1. Accessing the Graphics Object Section 5.2. Working with Colors Section 5.3. Working with Fonts Section 5.4....
Ngày tải lên: 12/08/2014, 19:20
gdi programming with c sharp phần 2 ppt
... rectangle. Intersect Replaces a rectangle with the intersection of itself and another rectangle. IntersectsWith Determines if a specified rectangle intersects with rect. Offset Adjusts the location of a specified ... was clicked. Now we check to see if the Rectangle check box is checked. If so, we draw a rectangle to mark the connecting point of the two lines. If not, we draw an ellipse as the connecting ... Point objects. You can test this code on a button or a menu click event handler. Listing 2.9 Creating RectangleF objects // Create a Graphics object Graphics g = this.CreateGraphics(); float...
Ngày tải lên: 12/08/2014, 19:20
gdi programming with c sharp phần 3 docx
... (rect, startColor, endColor, mode); } // Gamma correction check box is checked if(checkBox1.Checked) { lgBrush.GammaCorrection = true; } // Fill rectangle g.FillRectangle(lgBrush, rect); ... System.Drawing.Drawing2D.HatchBrush. public HatchBrush(HatchStyle, Color); public HatchBrush(HatchStyle, Color, Color); The following code creates a hatch brush with a dashed-vertical hatch style, blue background, ... hatch with the appearance of horizontally layered bricks. LargeCheckerBoard A hatch with the appearance of a checker-board with squares that are twice the size of SmallCheckerBoard. LargeConfetti A...
Ngày tải lên: 12/08/2014, 19:20
gdi programming with c sharp phần 4 pptx
... color AppWorkspace Multiple-document interface (MDI) workspace background color Control Control background color ControlDark 3D control shadow color ControlDarkDark 3D control dark shadow color ControlLight 3D ... active caption, and control dark system colors, respectively. textBox1.BackColor = SystemColors.InactiveBorder; radioButton1.BackColor = SystemColors.ActiveCaption; button1.BackColor = SystemColors.ControlDarkDark; If ... text background color HighlightText Highlighted text color HotTrack Hot track color InactiveBorder Inactive window border color InactiveCaption Inactive window caption bar color InactiveCaptionText Inactive...
Ngày tải lên: 12/08/2014, 19:20