ASP.NET 4 Unleased - p 161 ppt

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 31 ppt

ASP.NET 4 Unleased - p 31 ppt

... 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 ... BackColor=”White” BorderColor=”Black” BorderWidth=”4px” Font-Bold=”True” Font-Size=”12pt” ForeColor=”#333399” /> </asp:Calendar> When you open the page in Listing 6.9 in a web browse...

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

10 199 0
ASP.NET 4 Unleased - p 32 ppt

ASP.NET 4 Unleased - p 32 ppt

... Themes width:200px; padding:10px; background-color:White; } #div1 { position:absolute; left :48 5px; top:115px; width:200px; padding:10px; background-color:White; } The point of this section ... request a page. You cannot apply a Theme dynam- ically in a later event such as the Page Load or PreRender events. For example, the page in Listing 6.18 applies either the Green Theme or the P...

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

10 210 0
ASP.NET 4 Unleased - p 35 ppt

ASP.NET 4 Unleased - p 35 ppt

... “~/FeaturedProducts”; protected void Page_Load(object sender, EventArgs e) { string featuredProductPath = GetRandomProductPath(); Control featuredProduct = Page.LoadControl(featuredProductPath); PlaceHolder1.Controls.Add(featuredProduct); } private ... { background-color:silver; font:14px Georgia,Serif; } .content { background-color:white; width:600px; margin:auto; padding:20px; } ....

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

10 213 0
ASP.NET 4 Unleased - p 44 ppt

ASP.NET 4 Unleased - p 44 ppt

... of ASP.NET parameters: SelectParameters, InsertParameters, DeleteParameters, UpdateParameters, and FilterParameters. You can use these parameter collections to associate a particular ASP.NET ... to this property. You can use the ASP.NET parameter object to indicate several parameter properties explic- itly, such as a parameter’s type, size, and default value. For example, the page in...

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

10 236 0
ASP.NET 4 Unleased - p 50 ppt

ASP.NET 4 Unleased - p 50 ppt

... UpperAlpha . UpperRoman You can set BulletStyle to Numbered to display a numbered list. If you set this property to the value CustomImage and assign an image path to the BulletImageUrl property, ... control the appearance of the bullets that appear for each list item with the BulletStyle property. This property accepts the following values: . Circle . CustomImage . Disc . LowerAlpha . Lower...

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

10 206 0
ASP.NET 4 Unleased - p 53 ppt

ASP.NET 4 Unleased - p 53 ppt

... displays three database records per page. You can modify the number of records displayed per page by modifying the GridView control’s PageSize prop- erty. (If you don’t specify a value for PageSize, ... in an UpdatePanel control. When you sort GridView, only the region of the page contained in the UpdatePanel is updated. The current time displays at the top of the page. The time is not upda...

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

10 151 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 68 ppt

ASP.NET 4 Unleased - p 68 ppt

... EditDataList.aspx <%@ Page Language=”C#” MaintainScrollPositionOnPostback=”true” %> <!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”> <script ... 13.8 includes a RepeatColumns property that has the value 3. If you set the RepeatDirection property to the value Horizontal and do not assign a value to the RepeatColumns property...

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

10 208 0
ASP.NET 4 Unleased - p 161 ppt

ASP.NET 4 Unleased - p 161 ppt

... to the opening table tag. From the Library of Wow! eBook ptg 15 74 CHAPTER 35 Deploying ASP.NET Web Applications applications along with all their configuration, dependencies, and prerequisites. ... building your new ASP.NET 4 application, it’s going to get even more fun when you see how easy it is to deploy and manage these applications. From the Library of Wow! eBook ptg 1578...

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

10 55 0
Từ khóa:
w