ASP.NET 4 Unleased - p 165 pptx

ASP.NET 4 Unleased - p 9 pptx

ASP.NET 4 Unleased - p 9 pptx

... a property named the AssociatedControlID property. You can set this property to point at an ASP.NET control that represents a form field. For example, the page in Listing 2.3 contains a simple ... ASP.NET 2.0 pages, ASP.NET 3.0 pages, ASP.NET 3.5 pages, and ASP.NET 4 pages. Each version of .NET Framework is installed in the following folder: C:\WINDOWS\Microsoft.NET\Framework Fo...

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

10 315 0
ASP.NET 4 Unleased - p 11 pptx

ASP.NET 4 Unleased - p 11 pptx

... control, like the TextBox control, supports the AutoPostBack property. The page in Listing 2 .11 illustrates how you can use the AutoPostBack property to post the form containing the check box ... you use this property, the proper (accessibility standards-compliant) HTML <label> tag is gener- ated for the TextBox. From the Library of Wow! eBook ptg 83 Accepting User Input 2 id=”rdl...

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

10 395 0
ASP.NET 4 Unleased - p 19 pptx

ASP.NET 4 Unleased - p 19 pptx

... and Text property is that any message that you assign to the ErrorMessage property appears in the ValidationSummary control, and any message that you assign to the Text property appears in ... property. This property contains the name of a JavaScript function defined in the page’s <head> tag. The JavaScript validation function accepts the same two parameters as the server-side ... v...

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

10 252 0
ASP.NET 4 Unleased - p 21 pptx

ASP.NET 4 Unleased - p 21 pptx

... Figure 4. 1). 4 FIGURE 4. 1 Displaying a photo gallery. From the Library of Wow! eBook ptg 181 Accepting File Uploads NOTE Adding a FileUpload control to a page automatically adds a enctype=”multipart/form-data” ... FileUpload control. . SaveAs—Enables you to save the uploaded file to the file system. The FileUpload control’s PostedFile property enables you to retrieve the uploaded fil...

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

10 284 0
ASP.NET 4 Unleased - p 29 pptx

ASP.NET 4 Unleased - p 29 pptx

... custom property in a Master Page, such as the BodyTitle prop- erty, the value of the Master property must be cast to the right type. The BodyTitle property is not a property of the generic MasterPage ... name=”description” content=”A sample of using HtmlMeta controls” /> <meta name=”keywords” content=”HtmlMeta,Page.Header ,ASP.NET /> Exposing Master Page Properties You can expose p...

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

10 267 0
ASP.NET 4 Unleased - p 57 pptx

ASP.NET 4 Unleased - p 57 pptx

... FileUpload control FileUpload upPhoto = (FileUpload)frmPhoto.FindControl(“upPhoto”); srcImages.InsertParameters[“FileName”].DefaultValue = upPhoto.FileName; string savePath = MapPath(“~/Photos/” ... that represents the movie cate- gory ID query string parameter. You also can use HyperLinkFields when working with frames. For example, the page in Listing 11. 24 employs GridView to display a...

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

10 313 0
ASP.NET 4 Unleased - p 66 pptx

ASP.NET 4 Unleased - p 66 pptx

... OnClientClick property that calls the JavaScript confirm() method to display a confirmation dialog box. This extra script prevents users from accidentally deleting database records. Summary In this chapter, ... record into the Movies data- base table. LISTING 12.23 ShowFormViewInserting.aspx <%@ Page Language=”C#” %> <!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML 1.1//EN” “http://www....

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

10 244 0
ASP.NET 4 Unleased - p 70 pptx

ASP.NET 4 Unleased - p 70 pptx

... “~/Images/Ascent.jpg” ); photos.Add( “~/Images/Autumn.jpg” ); photos.Add( “~/Images/Azul.jpg” ); photos.Add( “~/Images/Home.jpg” ); photos.Add( “~/Images/Peace.jpg” ); photos.Add( “~/Images/Stonehenge.jpg” ... eBook ptg 667 Using the ListView Control 14 LISTING 14. 3 PhotoGallery.aspx <%@ Page Language=”C#” %> <%@ Import Namespace=”System.Collections.Generic” %> <!DOCT...

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

10 288 0
ASP.NET 4 Unleased - p 87 pptx

ASP.NET 4 Unleased - p 87 pptx

... Listing 18 .45 , the PagePropertyParameter represents the current username. Because the PagePropertyParameter can represent any page property, the parameter could represent any type of value. Summary In ... Control Creating a Page Property Parameter PagePropertyParameter enables you to represent an arbitrary property of the current page. The property being represented can return whatever t...

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

10 311 0
ASP.NET 4 Unleased - p 92 pptx

ASP.NET 4 Unleased - p 92 pptx

... ShowDataAdapterUpdate.aspx <%@ Page Language=”C#” %> <%@ Import Namespace=”System.Data” %> <%@ Import Namespace=”System.Data.SqlClient” %> <%@ Import Namespace=”System.Web.Configuration” ... <!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <script runat=”server”> private SqlDataAd...

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

10 257 0
ASP.NET 4 Unleased - p 101 pptx

ASP.NET 4 Unleased - p 101 pptx

... ([Id] = @p0 ) AND ([CategoryId] = @p1 ) AND ([Title] = @p2 ) AND ([Director] = @p3 ) AND ([DateReleased] = @p4 ) AND (NOT ([InTheaters] = 1)) AND ([BoxOfficeTotals] = @p5 ) AND ([Description] = @p6 ) LINQ ... TimeStamp FALSE You also need to ensure that the Version property gets saved into view state. You can do this by adding the Version property to a DataBound control’s DataKeyNames prope...

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

10 185 0
ASP.NET 4 Unleased - p 107 pptx

ASP.NET 4 Unleased - p 107 pptx

... Milk 4 1 Juice 5 4 Apple Juice 6 4 Orange Juice 7 2 Apples 8 2 Pears This database table represents product categories. The categories are nested with the help of the ParentId column. For example, ... the popout image. . DynamicPopOutImageUrl—Enables you to specify the URL for the dynamic popout image. (By default, a triangle is displayed.) . DynamicTopSeparatorImageUrl—Enables you to...

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

10 143 0
ASP.NET 4 Unleased - p 113 pptx

ASP.NET 4 Unleased - p 113 pptx

... encoding=”utf-8” ?> <siteMap xmlns=”http://schemas.microsoft.com/AspNet/SiteMap-File-1.0” > <siteMapNode url=”Employees/Default.aspx” title=”Employees” description=”Contains descriptions ... <siteMapNode url=”Products/Default.aspx” title=”Our Products” description=”Products that we offer”> <siteMapNode url=”Products/FirstProduct.aspx” title=”First Product” descr...

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

10 141 0
ASP.NET 4 Unleased - p 114 pptx

ASP.NET 4 Unleased - p 114 pptx

... the AutoSiteMapProvider as the applica- tion’s default provider. You can try out the AutoSiteMapProvider by requesting the Default.aspx page from the AutoSiteMapProviderApp Web application contained ... ptg 1111 Creating Custom Site Map Providers 23 Id ParentId Url Title Description 1 null Default.aspx Home Home Page 2 1 Products Products 3 2 Products/FirstProduct.aspx First Product First Pr...

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

10 139 0
ASP.NET 4 Unleased - p 165 pptx

ASP.NET 4 Unleased - p 165 pptx

... to support cross-page posts. The instance of the PostBackOptions class is passed to the GetPostBackEventReference() method to generate the JavaScript for initiating the postback. The page ... control in Listing 36.22 supports cross-page posts. When you click the check box, the form data is submitted to the page indicated by its PostBackUrl property. NOTE Cross-page posts are covered duri...

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

10 125 0
Từ khóa:
w