... C u tr c lớp HTMLControl. C c thu c tính chính trong khai báo c c thẻ HTMLControl trên dựa theo bảng sau : Hình 2.9 C c thu c tính chính c a c c HTMLControls. C c sự kiện chính c a c c ... kh c hẳn so với ASP trư c kia và đáp ứng đư c c c yêu c u đặt ra.Hình 4.5 minh họa c c thành phần bên trong ASP. Net 3.5 Hình 1.6: C c thành phần c a ASP. Net 3.5 C c ƣu điểm c a ASP. Net ... trình cung c p dữ liệu c a ADO .NET 217 7.3. C c namespace c a ADO .NET 219 7.4. Tìm hiểu c chế kết nối c a ADO .NET qua Connected Layer 223 7.6. Disconnected Layer 247 7.7. Đối tượng dữ liệu...
Ngày tải lên: 06/08/2013, 18:12
Tài liệu ASP.NET MVC Tutorial 10 CS docx
... Notice that the MoviesController class in Listing 5 has two constructors. The first constructor, the parameterless constructor, is called when your application is running. This constructor creates ... particular, an MVC model contains all of your application business and data access logic. You can use a variety of different technologies to implement your data access logic. For example, you can ... Listing1 – Controllers\HomeController.cs using System.Linq; using System.Web.Mvc; using MvcApplication1.Models; namespace MvcApplication1.Controllers { [HandleError] public class HomeController...
Ngày tải lên: 17/12/2013, 13:15
Tài liệu ASP.NET 1.1 Insider Solutions- P1 pptx
... on each postback. IN THIS CHAPTER Getting More from ASP. NET Validation Controls 8 BEST PRACTICE: Protecting Your Pages from Spoofing Attacks 12 BEST PRACTICE: Displaying the Correct Currency Symbol ... oCheck As ListItem In MyCheckBoxList.Items If oCheck.Selected Then iCount += 1 End If Next e.IsValid = (iCount <= 5) End Sub You can also access the captions of each CheckBox control through the ... runat=”server” ClientValidationFunction=”ClientValidateCheckboxList” OnServerValidate=”ServerValidateCheckboxList” ErrorMessage=”You cannot select more than five checkboxes”> More than five checkboxes selected < /asp: CustomValidator> Then...
Ngày tải lên: 24/12/2013, 04:16
Tài liệu ASP.NET 1.1 Insider Solutions- P2 ppt
... such as ForeColor and BackColor , accept references to a Color structure. Properties that accept sizes, such as Width and BorderWidth , accept references to a Unit structure. When declaring ... ConfigurationSettings.AppSettings(“NorthwindSqlClientConnectString”) Dim oConnect As New SqlConnection(sConnect) Try ‘ get DataReader for rows from Northwind Customers table Dim oCommand As New SqlCommand(sSelect, oConnect) oCommand.Parameters.Add(“@CustomerID”, ... many of the ASP. NET server controls on the form. It also prevents the ASP. NET postback architecture from working, so you cannot access the controls on the original page—you can access only their...
Ngày tải lên: 24/12/2013, 04:16
Tài liệu ASP.NET 1.1 Insider Solutions- P3 pptx
... BackColor=” #c0 c 0c0 ” /> <Columns> < ;asp: BoundColumn DataField=”ProductID” HeaderText=”ID” /> < ;asp: BoundColumn DataField=”ProductName” HeaderText=”Product” /> < ;asp: BoundColumn ... String = ConfigurationSettings.AppSettings( _ “NorthwindSqlClientConnectString”) Dim oConnect As New SqlConnection(sConnect) Dim oDA As New SqlDataAdapter(sSelect, oConnect) oDA.SelectCommand.Parameters.Add(“@CustomerID”, ... Width=”100%” DataKeyField=”OrderID” OnEditCommand=”DoItemEdit” OnUpdateCommand=”DoItemUpdate” OnCancelCommand=”DoItemCancel” AutoGenerateColumns=”False” > <HeaderStyle BackColor=” #c0 c 0c0 ” /> 4 Working with Nested List Controls 136 LISTING...
Ngày tải lên: 24/12/2013, 04:16
Tài liệu ASP.NET 1.1 Insider Solutions- P4 pdf
... oCommand.ExecuteReader(CommandBehavior.CloseConnection) Catch oErr As Exception ‘ be sure to close connection if error occurs If oConnect.State <> ConnectionState.Closed Then oConnect.Close() End ... TextBox controls, using a Try Catch construct to detect invalid values and catch errors. If an invalid data type conversion occurs for the Parse method, the Catch section of each construct displays ... _ = ConfigurationSettings.AppSettings(“NorthwindOleDbConnectString”) Dim oConnect As New OleDbConnection(sConnect) Try oConnect.Open() Dim oCommand As New OleDbCommand(sSQL, oConnect) Return oCommand.ExecuteReader(CommandBehavior.CloseConnection) Catch...
Ngày tải lên: 24/12/2013, 04:16
Tài liệu ASP.NET 1.1 Insider Solutions- P5 doc
... sSelect As String _ = “SELECT ProductName FROM Products WHERE ProductName LIKE c% ’” Dim oConnect As New OleDbConnection(sConnect) Try oConnect.Open() Dim oCommand As New OleDbCommand(sSelect, oConnect) Return ... bButtonClicked = false; function buttonClick(ctrl) { // check value of first checkbox var theForm = document.forms[0]; if(theForm.elements[‘chkNoDisable’].checked == false) { // first checkbox ... alphanumeric character (0-9, A-Z, a-z) [A] = an uppercase alphanumeric character (0-9, A-Z) [l] = any letter character (A-Z, a-z) [L] = an uppercase letter character (A-Z) [n] = any numeric character...
Ngày tải lên: 24/12/2013, 04:16
Tài liệu ASP.NET: Tips, Tutorials, and Code pptx
... “:</b></u><br>”) 17: 18: ‘Create a Match object instance / iterate through the MatchCollection Common ASP. NET Code Techniques C HAPTER 2 2 COMMON ASP .NET C ODE TECHNIQUES 47 2143-2 ch02 3/19/01 3:43 ... </html> Common ASP. NET Code Techniques C HAPTER 2 2 COMMON ASP .NET C ODE TECHNIQUES 41 2143-2 ch02 3/19/01 3:43 PM Page 41 Common ASP. NET Code Techniques C HAPTER 2 48 LISTING 2.15 Continued F IGURE ... might try Directory.CreateDirectory( C: \ASP\ CodeExamples”) However, if the directory C: \ASP does not exist, the CreateDirectory method will throw a DirectoryNotFoundException exception because CreateDirectory...
Ngày tải lên: 17/01/2014, 06:20