... VII: Building ASP.NET Applications—Discusses a variety of topics related to building ASP.NET applications. For example, you learn how to improve the perfor- mance of your ASP.NET applications by ... Updating UpdatePanels Programmatically 1692 Contents xxi From the Library of Wow! eBook ptg UpdatePanels and JavaScript 16 94 UpdatePanel Server-Side Page Execution Life Cycle 1697 Up...
Ngày tải lên: 06/07/2014, 18:20
... control represents something complex—such as a bar chart, pie graph, or company organizational chart— you should supply a value for the DescriptionUrl prop- erty. The DescriptionUrl property links ... OnClick=”mapMenu_Click”> <asp:RectangleHotSpot PostBackValue=”ToUpper” Left=”0” Top=”0” Right=”100” Bottom=”30” AlternateText=”To Uppercase” /> <asp:RectangleHotSpot PostBackValue...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 20 docx
... includeScript = Page.ResolveClientUrl(“~/ClientScripts/AjaxValidator.js”); Page.ClientScript.RegisterClientScriptInclude(“AjaxValidator”, includeScript); // Register startup script String startupScript ... this.ClientID); Page.ClientScript.RegisterStartupScript(this.GetType(), “AjaxValidator”, startupScript, true); base.OnPreRender(e); } /// <summary> /// Only do the AJAX on browser...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 27 docx
... file any place within an application. Furthermore, you can add multi- ple Master Pages to the same application. For example, Listing 5.1 contains a simple Master Page. LISTING 5.1 SimpleMaster.master <%@ ... data=”data:application/x-silverlight-2,” type=”application/x-silverlight-2”> <param name=”source” value=”SilverlightApplication1.xap” /> <param name=”onerror” value=”on...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 30 docx
... of the properties of an ASP.NET control that have an effect on its appearance. For example, imagine that you decide that you want every TextBox control in your web application to appear with ... property. Next, the value of the Profile property is assigned to the page’s MasterPageFile property. Assigning a value to the MasterPageFile property causes a Master Page to be dynamically loade...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 52 docx
... <script runat=”server”> void Page_Load() { // Build shopping list List<string> shoppingList = new List<string>(); shoppingList.Add(“Bread”); shoppingList.Add(“Milk”); shoppingList.Add(“Beer”); ... 11.2 ShowShoppingList.aspx <%@ Page Language=”C#” %> <%@ Import Namespace=”System.Collections.Generic” %> <!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML 1.1//EN”...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 63 docx
... Control 12 font:14px Arial,Sans-Serif; } td,th { padding:10px; } #divDisplay { border:solid 1px black; width :40 0px; padding:15px; background-color:#eeeeee; } #divInsert { display:none; border:solid ... { display:none; border:solid 1px black; width :40 0px; position:absolute; top:30px; left:100px; padding:10px; background-color:white; } </style> <script type=”te...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 71 docx
... chtPrices.Series[“PriceSeries”].Points.AddXY(“2 /4/ 2010”, 85); chtPrices.Series[“PriceSeries”].Points.AddXY(“2/5/2010”, 45 ); chtPrices.Series[“PriceSeries”].Points.AddXY(“2/6/2010”, 87); chtPrices.Series[“PriceSeries”].Points.AddXY(“2/7/2010”, ... Fundamentals 15 chtPrices.Series[“PriceSeries”].Points.AddXY(“2/1/2010”, 50); chtPrices.Series[“PriceSeries”].Points.AddXY(“2/2/2010”, 75);...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 75 docx
... /> </asp:PropertyExpression> <asp:SearchExpression ComparisonType=”InvariantCultureIgnoreCase” DataFields=”Title,Description” SearchType=”Contains”> <asp:ControlParameter ControlID=”GameSearchTextBox” ... TargetControlID=”RansomDataSource”> <asp:PropertyExpression> <asp:ControlParameter ControlID=”RansomValues” Name=”RansomValue”/> </asp:PropertyExpress...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 77 docx
... example, every ASP.NET page inher- its from the base System.Web.UI.Page class. The only reason that you can use properties such as the IsPostback property in an ASP.NET page is that the page ... MembershipProvider class provides a common set of methods and properties that all MembershipProvider-derived classes inherit. The base MembershipProvider class includes a number of methods and...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 82 docx
... list of parameters. Rather than pass a list of parameters to a method, you can pass a partic- ular object. For example, you can pass a CompanyEmployee object to a method used to update an employee, ... to update existing employees in the Employees database table. LISTING 18.17 UpdateEmployees.aspx <%@ Page Language=”C#” %> <!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML 1.1//EN” “htt...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 115 docx
... techniques that use the new ASP.NET 4 Routing Engine. If your goal is to provide “permalink” type functionality or specifically map URLs to pieces of content (rather than .aspx pages), these techniques ... custom HTTP module. Using a module is useful when you need to support wildcard matches and other types of pattern match- ing when remapping a URL. Finally, you learn how to use the...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 120 docx
... the Login.aspx page. LISTING 26.21 CreateUserWizardPasswordConfirmation.aspx <%@ Page Language=”C#” %> <!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> ... rendered, you must perform an additional step. You must set the CreateUserWizard control’s RequireEmail property to the value False. If you add the pa...
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 125 docx
... Wow! eBook ptg 12 14 CHAPTER 27 Using ASP.NET Membership You can add a machineKey element with explicit keys to either the machine root web configuration file or to particular application web ... the current user. The Page.User property exposes a Principal object that supports the following method: . IsInRole—Enables you to check whether a user is a member of a particular role. From .....
Ngày tải lên: 06/07/2014, 18:20
ASP.NET 4 Unleased - p 166 docx
... EncodedInnerDefaultProperty, InnerDefaultProperty, and InnerProperty. . TypeConverter—Enables you to associate a custom type converter with a property. A type converter converts a property between a string representation ... changes to a subproperty should be propagated to the parent property. . PersistenceMode—Enables you to specify whether a property is persisted as a control attribute...
Ngày tải lên: 06/07/2014, 18:20