Professional ASP NET 3 5 in C# and Visual Basic Part 138 docx

Professional ASP.NET 3.5 in C# and Visual Basic Part 144 docx

Professional ASP.NET 3.5 in C# and Visual Basic Part 144 docx

... sorting operation occurring in the en-US culture. 1394 Evjen c30.tex V2 - 01/28/2008 3:57pm Page 1395 Chapter 30: Localization Listing 30-12: Working with sorting in different cultures VB Protected ... shown in Listing 30-13. Listing 30-13: Changing the culture to Finnish VB System.Threading.Thread.CurrentThread.CurrentCulture = New CultureInfo("fi-FI") C# System.Threading.Thread.Cu...

Ngày tải lên: 05/07/2014, 19:20

10 354 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 132 docx

Professional ASP.NET 3.5 in C# and Visual Basic Part 132 docx

... integrated part of the IIS request processing pipeline. Figure 27-1 shows the basic request processing pipeline of IIS 5/6 and ASP.NET. Figure 27-1 As you can see, the IIS and ASP.NET request pipelines ... 27-2, ASP.NET passes each incoming request through a layer of preprocessing HttpModules in the pipeline. ASP.NET allows multiple modules to exist in the pipeline for each request. After the...

Ngày tải lên: 05/07/2014, 19:20

10 345 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 134 docx

Professional ASP.NET 3.5 in C# and Visual Basic Part 134 docx

... objects within your ASP.NET 3.5 applications. ASP.NET now includes a folder, \ App_Code , which you can place within your ASP.NET applications to hold all your .NET business objects. The nice thing ... put into building componentized applications using the ‘‘latest’’ ActiveX technologies. Using Business Objects in ASP.NET 3.5 Chapter 1 of this book provides an introduction to using .NET busin...

Ngày tải lên: 05/07/2014, 19:20

10 199 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 119 docx

Professional ASP.NET 3.5 in C# and Visual Basic Part 119 docx

... Directory class’s SetCurrentDirectory() method. Listing 25-5 shows you how to set and then display your working directory. Listing 25-5: Setting and displaying the application’s working directory ... Figure 25-3 Notice that the example continuously creates new instances of the DirectoryInfo class each time the method executes in order to continue to enumerate the directory tree. You could als...

Ngày tải lên: 05/07/2014, 19:20

10 291 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 122 docx

Professional ASP.NET 3.5 in C# and Visual Basic Part 122 docx

... If ns.Close() C# System.Net.Sockets.TcpClient client = new System.Net.Sockets.TcpClient(); // Note: You can find a large list of Telnet accessible // BBS systems at http://www.dmine.com/telnet/brieflist.htm ... binarywriter.Write(0x12346789abcdef); Continued 1173 Evjen c25.tex V2 - 01/28/2008 3:42pm Page 1174 Chapter 25: File I/O and Streams binarywriter.Write(0x12345678); binarywriter.Write(...

Ngày tải lên: 05/07/2014, 19:20

10 352 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 124 docx

Professional ASP.NET 3.5 in C# and Visual Basic Part 124 docx

... ASP.NET application. The two types of reusable components in ASP.NET are user controls and server con- trols. A user control encapsulates existing ASP.NET controls into a single container control, ... only a single point of code to create, debug, deploy, and maintain. In this scenario, the customer object is typically known as a business object because it encapsulates all the business logic n...

Ngày tải lên: 05/07/2014, 19:20

10 272 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 110 docx

Professional ASP.NET 3.5 in C# and Visual Basic Part 110 docx

... ID and password can be included in the connection string; or Windows Integrated Security can be used if the ASP.NET Worker Process’s identity is configured with access in SQL Server. Extending ... End Class C# — Default.aspx.cs public partial class _Default : SmartSessionPage { protected void Button1_Click(object sender, EventArgs e) 1050 Evjen c22.tex V2 - 01/28/2008 3:19pm Page 1051 Chapter...

Ngày tải lên: 05/07/2014, 19:20

10 331 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 62 docx

Professional ASP.NET 3.5 in C# and Visual Basic Part 62 docx

... approach, follow these steps to launch the IIS7 Manager: 1. Launch the Control Panel 2. Click System and Maintenance 3. Click Administrative Tools 4. Click the Internet Information Services (IIS) ... you feel more comfortable with command line tools, use the following command line to launch the IIS Manager: %windir% \ system32 \ inetsrv \ inetmgr.exe You can also just type IIS into the new .....

Ngày tải lên: 05/07/2014, 18:20

10 278 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 51 doc

Professional ASP.NET 3.5 in C# and Visual Basic Part 51 doc

... queries, involving grouping or sorting? Now the complexity of the code dramatically increases, as shown in Listing 9-4. Listing 9-4: Grouping and sorting the List of Movie objects VB Public Class ... Evjen c09.tex V2 - 01/28/2008 2:09pm Page 456 Chapter 9: Querying with LINQ Listing 9-1: A basic Movie class VB Imports Microsoft.VisualBasic Public Class Movie Private _title As String Private ....

Ngày tải lên: 05/07/2014, 18:20

10 296 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 52 ppsx

Professional ASP.NET 3.5 in C# and Visual Basic Part 52 ppsx

... using the order by statement. As with SQL you can choose to order the results in either ascending or descending order, as shown in Listing 9-9. Listing 9-9: Controlling data ordering using LINQ ... 18 to 3, and the readability and clarity of the code has improved. Other LINQ Operators Besides basic selection, filtering and grouping, LINQ also includes many operators you can execute on enumerab...

Ngày tải lên: 05/07/2014, 18:20

10 407 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 53 pps

Professional ASP.NET 3.5 in C# and Visual Basic Part 53 pps

... of .NET are included as an extension to the basic .NET framework, and do not change any existing functionality. Also, as with the core LINQ features, the LINQ to XML features are contained in ... assembly. In addition to the normal Intellisense and strong type checking that every flavor of LINQ gives you, LINQ to SQL also includes a basic Object Relation (O/R) mapper directly in Visual Studio....

Ngày tải lên: 05/07/2014, 18:20

10 174 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 42 ppt

Professional ASP.NET 3.5 in C# and Visual Basic Part 42 ppt

... For more information on using t he Menu control, see Chapter 14. Inline Data-Binding Syntax Another feature of data binding in ASP.NET is inline data-binding syntax. Inline syntax in ASP.NET 1.0/1.1 ... of ASP.NET, including 3.5, the concept of inline data binding remains basically the same, but you are given a simpler syntax and several powerful new binding tools to use. Data-Binding Syntax...

Ngày tải lên: 05/07/2014, 18:20

10 229 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 43 pps

Professional ASP.NET 3.5 in C# and Visual Basic Part 43 pps

... Evjen c07.tex V2 - 01/28/2008 2:01pm Page 375 Chapter 7: Data Binding in ASP.NET 3.5 Summary In this chapter, you examined data binding in ASP.NET. The introduction of data source controls such ... System.Data.SqlClient; using System.Collections.Generic; public class SelectingData { public List < string > GetCompanyNameData() { SqlConnection conn; SqlCommand cmd; string cmdString = &quo...

Ngày tải lên: 05/07/2014, 18:20

10 236 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 44 ppt

Professional ASP.NET 3.5 in C# and Visual Basic Part 44 ppt

... ConnectionStrings["DSN_Northwind"].ConnectionString; SqlCommand MyCommand = new SqlCommand(); MyCommand.CommandText = "SELECT TOP 5 * FROM CUSTOMERS"; MyCommand.CommandType = CommandType.Text; MyCommand.Connection ... SqlCommand = New SqlCommand() MyCommand.CommandText = _ "SELECT * FROM CUSTOMERS WHERE CITY = @CITY AND CONTACTNAME = @CONTACT" MyCommand.CommandTy...

Ngày tải lên: 05/07/2014, 18:20

10 238 0
Professional ASP.NET 3.5 in C# and Visual Basic Part 45 potx

Professional ASP.NET 3.5 in C# and Visual Basic Part 45 potx

... OracleCommand(cmdString, conn) cmd.CommandType = CommandType.Text conn.Open() C# OracleConnection conn; OracleCommand cmd; string cmdString = "Select CompanyName from Customers"; conn = new OracleConnection("User ... MyConnection.ConnectionString = ConfigurationManager.ConnectionStrings["DSN_Northwind"].ConnectionString; SqlCommand MyCommand = new SqlCommand(); MyComm...

Ngày tải lên: 05/07/2014, 18:20

10 296 0
w