ASP NET 4 Unleased - p 114 pptx

ASP.NET 4 Unleased - p 114 pptx

ASP.NET 4 Unleased - p 114 pptx

... 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 Product 4 ... Product 4 2 Products/SecondProduct.aspx Second Product Second Product 6 1 Services Services 7 6 Services/FirstService.aspx First Service First Service Creating the SqlSiteMapProvider For c...

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

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

ASP.NET 4 Unleased - p 9 pptx

... 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 For example, ... 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 Listin...

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

... using Internet Explorer, you can configure AutoComplete by selecting Tools, Internet Options, Content, and clicking the AutoComplete button. The ASP. NET Framework does not support AutoComplete for ... 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 chec...

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 ... /...

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” ... control. LISTING 4. 1 FileUploadFile.aspx <%@ Page Language=”C#” %> <%@ Import Namespace=”System.IO” %> <!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML 1.0 Tra...

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

... content=”HtmlMeta,Page.Header ,ASP. NET /> Exposing Master Page Properties You can expose properties and methods from a Master Page and modify the properties and methods from a particular content page. ... 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 ge...

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

... = upPhoto.FileName; string savePath = MapPath(“~/Photos/” + upPhoto.FileName); // Save contents to file system upPhoto.SaveAs(savePath); } </script> From the Library of Wow! eBook ptg 538 ... void frmPhoto_ItemInserting(object sender, FormViewInsertEventArgs e) { // Get the FileUpload control FileUpload upPhoto = (FileUpload)frmPhoto.FindControl(“upPhoto”); srcImages.InsertParame...

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

... CommandName=”Update” Runat=”server” /> | < ;asp: LinkButton id=”lnkCancel” Text=”Cancel Update” CommandName=”Cancel” Runat=”server” /> </EditItemTemplate> < /asp: FormView> < ;asp: SqlDataSource ... record into the Movies data- base table. LISTING 12.23 ShowFormViewInserting.aspx <%@ Page Language=”C#” %> <!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML 1.1//EN”...

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

... <div> < ;asp: ListView ID=”lstPhotos” GroupItemCount=”3” runat=”server”> <LayoutTemplate>< ;asp: Placeholder id=”groupPlaceholder” runat=”server” /> </LayoutTemplate> <GroupTemplate> ... eBook ptg 667 Using the ListView Control 14 LISTING 14. 3 PhotoGallery.aspx <%@ Page Language=”C#” %> <%@ Import Namespace=”System.Collections.Generic” %>...

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
w