NOTE TRANG 5 ptg 1078 CHAPTER 22 Using the Navigation Controls The page in Listing 22.32 illustrates how you can use the SqlHierarchicalDataSource control to bind a Menu control to a dat[r]
ptg 232 CHAPTER 4 Using the Rich Controls NOTE Silverlight applications are built using the Silverlight SDK and Visual Studio using spe- cific markup called XAML. Building the actual Silverlight content is beyond the scope of this book. For more information on building applications i[r]
Every ASP.NET control includes an EnableTheming property. You can use the EnableTheming property to prevent a Skin from being applied to a particular control in a page. For example, the page in Listing 6.8 contains two Calendar controls. The second Calendar control has its E[r]
First, you learn how to create Skins, which enable you to modify the properties of an ASP.NET control that have an effect on its appearance.. You learn how to create both Default and Nam[r]
The Page_Load() method in Listing 5.15 uses two page-level properties. The first repre- sents a Meta Description tag, and the second represents a Meta Keywords tag. When the page is rendered, the following tags are added to the <head> tag: <meta name=”description” content=”A samp[r]
Relative URLs used by ASP.NET controls in a Master Page are automatically reinterpret- ed relative to the Master Page. This process of reinterpretation is called rebasing . Only ASP.NET control properties decorated with the UrlProperty attribute are rebased. Second,[r]
Within a Content control, you can place anything that you would normally add to an ASP.NET page, including XHTML tags and ASP.NET controls. Creating Default Content You don’t need to associate a Content control with every ContentPlaceHolder control contained i[r]
For example, the page in Listing 4.17 contains a MultiView control with three View TRANG 8 ptg 4 LISTING 4.17 MultiViewTabs.aspx protected void Menu1_MenuItemClickobject sender, MenuE[r]
If you cache a page that contains an AdRotator control, the AdRotator control is excluded from the cache. In other words, even if you cache a page, randomly selected banner advertisements still display. The AdRotator control takes advantage of a fea- ture of the ASP.NET Framewo[r]
TRANG 5 ptg The SelectionMode property enables you to change the behavior of the calendar so that you can not only select days, but also select weeks or months.. The page in Listing 4.8 [r]
To enable ASP.NET Framework to save an uploaded file to a particular folder, you need to right-click the folder within Windows Explorer, select the Security tab, and provide either the N[r]
ptg Summary In this chapter, you learned how to create a consistent look for your website by taking advantage of ASP.NET Themes. In the first section, you learned how to modify the appear- ance of controls in a page with Skins. You learned how to create both Default and Named Sk[r]
. Displaying a Wizard . Displaying Silverlight Content . Summary I n previous chapters we examined the ASP.NET controls that you use in just about any application. In this chapter we examine a more specialized set of controls known collec- tively as the rich controls .
NOTE To connect to SQL Server 2005 Express from a page served from Internet Information Server, you must add either the ASPNET account (in the case of Windows XP) or the Network Service account (for Windows 2003, Vista, and 7) to SQL Server Express. These accounts are created for you automatical[r]
Finally, storing a connection string in a page can, potentially, hurt the performance of your application. The ADO.NET provider for SQL Server automatically uses connection pooling to improve your application’s data access performance. Instead of being destroyed when they are closed, the c[r]
NOTE Although you can use the SqlDataSource control when working with Microsoft Access, the ASP.NET Framework does include the AccessDataSource con- trol, which was designed specifically for Microsoft Access. Because using Microsoft Access for a website is not recommended, thi[r]
The value of the TRANG 3 ptg 356 CHAPTER 8 Overview of Data Access USING PROGRAMMATIC DATABINDING When you bind a DataBound control to a DataSource control, you can take advantage of _de[r]
NOTE What happened to the DataGrid? The DataGrid was included in ASP.NET 1.x Framework, but it no longer appears in the Toolbox in Visual Web Developer. The DataGrid is offi- cially deprecated. You should use the GridView control instead because the GridView is more powerful. For[r]
If you dynamically load a User control, you need to cast the control to the correct type before you can access any of the control’s custom properties. To get a reference to a User control’s type, you must use the <%@ Reference %> directive. For example, imagine that you need to create a[r]