... having everything in a single viewable instance makes working with the ASP.NET page easier. Another great thing is that Visual Studio 2008 provides IntelliSense when working with the inline coding ... pages inline. In fact, many page types have options for both inline and code-behind styles. The following table shows your inline options when selecting files from this dialog. File Opt...
Ngày tải lên: 05/07/2014, 18:20
... on/off sections of an ASP.NET page. Turning sections on and off, which means activating or deactivating a series o f View controls within a MultiView control, is similar to changing the visibility ... want within the View controls. When you are finished, you have something like the view shown in Figure 3-41. You also can create your controls directly in the code, as shown in Listing...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 26 pdf
... against values or calculations performed in the data tier (for example, in a database), or to make sure that the user’s input validates against some arithmetic validation (for example, determining ... address or an Internet URL;ifitdoesn’tmatchthisdefinition,thepageis considered invalid. Listing 4-13 shows you how to validate what is input into a text box by making sure it is in the form...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 49 pdf
... CustAsyncResult; System.Threading.WaitHandle[] WHandles = new System.Threading.WaitHandle[1]; System.Threading.WaitHandle OrdersWHandle; System.Threading.WaitHandle CustWHandle; DBCon = new SqlConnection(); DBCon.ConnectionString ... OrdersCommand.BeginExecuteReader() CustWHandle = CustAsyncResult.AsyncWaitHandle OrdersWHandle = OrdersASyncResult.AsyncWaitHandle ’ Filling Wait Handles array w...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 58 pdf
... 10: Working with XML and LINQ to XML between the DataSet’s name, DataTable ’s name, and the resulting XML is not obvious when using DataSets. The resulting XML is shown in the browser in Figure ... 10: Working with XML and LINQ to XML work and no nodes are being returned, find out if your source XML has a namespace specified and that it matches up with a namespace in your XPath....
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 63 pdf
... applica- tion, and virtual directory running on the machine inherits these authorization rules and has to live by them. Moving an Application from IIS6 to IIS7 If you add a standard ASP.NET application into ... There’s a much richer graphical interface, and command-line interface, and a transparent and hierarchical XML-based configuration system that feels familiar to professional...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 67 pdf
... as the ASP.NET Web Site Administration Tool or through the new ASP.NET MMC snap -in. Both of these items are covered in detail in Chapter 32. An example of using the ASP.NET MMC snap -in Windows ... the defaultProvider attribute in the machine.config file for the < configProtectedData > node. Changing it in the web.config is illustrated in Listing 12-24. Listing 12-24: U...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 68 pdf
... appropriate methods and properties, take the following steps (depending on the language you are using). If you are using Visual Basic, all you have to do is press the Enter key. In C#, you first place ... 627 Extending the Provider Model The last chapter introduced the provider model found in ASP.NET 3.5 and explained how it is used with the membership and role management sys...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 80 pdf
... the ASP.NET 3.5 personalization features, you must first open up the aspnet_regsql.exe tool by invoking it from the Visual Studio 2008 Command Prompt. You open this command prompt by selecting ... tools and wizards use. If you look at C: \ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \, from this location, you can see the install and remove scripts — InstallPersonalization.sql a...
Ngày tải lên: 05/07/2014, 19:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 81 pdf
... configuration setting that is shown in Listing 16-1. You can find some interesting settings in Listing 16-2, however. You can really change the behavior of the forms authentication system by adding this < forms > ... developers and, in most cases, it was rather time-consuming. ASP.NET 3.5 includes an authentication and authorization management service that takes care of the l...
Ngày tải lên: 05/07/2014, 19:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 94 pdf
... the controls actually already use inline CSS styles. You can see this in action by looking at the standard ASP.NET Button control. The standard method for styling ASP.NET controls like the Button ... /> When ASP.NET processes the Web page containing this control, it converts a button into a standard HTML Input tag, and it also converts the style properties you have set into CSS s...
Ngày tải lên: 05/07/2014, 19:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 97 pdf
... support for building your ASP.NET AJAX pages, including the creation of triggers in the UpdatePanel control. To see this in action, place a single UpdatePanel server control on your page and view the ... that initiate an asynchronous page postback. Using the < Triggers > element within the UpdatePanel control, you can rewrite Listing 19-13 as shown in Listing 19-14. Listing 19...
Ngày tải lên: 05/07/2014, 19:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 99 pdf
... how the expanding and collapsing occur. For instance, you could have also set the Label1 control to be the initiator of this process and even change the text of the Label control depending on the ... the color #999 966 and change completely to color #FFFFFF within 5 seconds (defined using the Duration property). When you pull up this page and click on the Panel element, you will see t...
Ngày tải lên: 05/07/2014, 19:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 102 pdf
... are interested in working with inside of a Panel control. Listing 20-26 shows this done with a Login server control. Listing 20-26: Rounding the c orners of the Panel control containing a Login ... numbers using a mouse instead typing in the number. Listing 20-27 shows a simple example of using the slider. Listing 20-27: Using the SliderExtender c ontrol < %@ Page Language=" ;C#& q...
Ngày tải lên: 05/07/2014, 19:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 129 pdf
... True MyBase.RenderContents(writer) End Sub End Class C# using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace ... System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent End Sub End Class C# using System; using System.Collections.Generic; usin...
Ngày tải lên: 05/07/2014, 19:20