... "GetRandomNumberFromServer", "context"); string cbScript = "function UseCallback(arg, context)" + "{" + cbReference + ";" + "}"; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), ... "function UseCallback(arg, context)" +"{" + cbReference + ";" + "}"; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "UseCallback", cbScript, ... "}" Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), _ "UseCallback", cbScript, True) The function placed on the client for the callback capabilities is calledUseCallback()
Ngày tải lên: 05/07/2014, 18:20
... Text="Visual Basic" GroupName="LanguageChoice" OnCheckedChanged="RadioButton_CheckedChanged" AutoPostBack="True" /> <asp:RadioButton ID="RadioButton2" ... ID="RadioButton2" runat="server" Text="C#" GroupName="LanguageChoice" OnCheckedChanged="RadioButton_CheckedChanged" AutoPostBack="True" /> </div> </form> ... shown in Listing 3-20 Listing 3-20: Selecting a single day in the Calendar control VB <%@ Page Language="VB" %> <script runat="server"> Protected Sub Calendar1_SelectionChanged(ByVal
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 20 pptx
... runat="server" OnDayRender="Calendar1_DayRender" Height="190px" BorderColor="White" Width="350px" ForeColor="Black" BackColor="White" BorderWidth="1px" ... ForeColor="#333399" BorderColor="Black" Font-Size="12pt" Font-Bold="True" BackColor="White" BorderWidth="4px"> </TitleStyle> </asp:Calendar> ... ForeColor="#999999"></OtherMonthDayStyle> <TodayDayStyle BackColor="#CCCCCC"></TodayDayStyle> <NextPrevStyle ForeColor="#333333" VerticalAlign="Bottom"
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 21 pptx
... value="a031e77c-379b-4b4a-887c-244ee69584d5" / > On the page postback, ASP.NET can detect whether the HiddenField server control has changed its value since the last post. This enables you to change ... the PlaceHolder control. You can add more than one control to a single instance of a PlaceHolder control. 156 Evjen c03.tex V2 - 01/28/2008 12:33pm Page 157 Chapter 3: ASP.NET Web Server Controls ... the ASP.NET engine choose which scrollbars to activate, you can actually make that decision by using the ScrollBars attribute. In addition to Auto , its values include None , Horizontal , Vertical
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 22 pps
... waitChangeNotification="0" maxWaitChangeNotification="0" enableHeaderChecking="true" sendCacheControlHeader="true" apartmentThreading="false" /> You can do a lot ... requestLengthDiskThreshold="80" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="5000" enableKernelOutputCache="true" ... you do not see the ASP.NET Machine Account in the list of users allowed to access the folder, add ASP.NET by clicking the Add button and entering ASPNET (without the period) in the text area provided
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 23 pdf
... 3-41 You also can create your controls directly in the code, as shown in Listing 3-40 Listing 3-40: Using the MultiView and View server controls VB <%@ Page Language="VB"%> <script ... final step in the series This event simply covers each step change generically CancelButtonClick Triggers when the end user clicks the Cancel button in the navigation system FinishButtonClick ... <asp:Button ID="Button1" runat="server" Text="Next Step" OnClick="NextView" /> </asp:View> <asp:View ID="View2" runat="server">
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 24 doc
... steps and change values before those values are saved to a data store. The event appears in your code behind or inline code, as shown in Listing 3-44. Listing 3-44: The FinishButtonClick event VB ... can take a single image and specify particular hotspots on the image using coordinates. An example is shown in Listing 3-51. Listing 3-51: Specifying sections of an image that are clickable VB ... user is contained within a certain role is demonstrated in Listing 3-50. Listing 3-50: Applying logical checks on whether to show a step based upon roles VB Sub Wizard1_NextButtonClick(ByVal
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 25 pps
... disabled the client-scripting capabilities in their browsers — thereby making your validations useless. 194 Evjen c04.tex V2 - 01/28/2008 12:45pm Page 195 Chapter 4: Validation Server Controls Therefore, ... validation checks are performed on the server instead of on the client. It is more secure because these checks cannot be easily bypassed. Instead, the form data values are checked using server code (C# ... validation server controls have been added to ASP.NET since the initial release of the technology, but ASP.NET 2.0 introduced some new features, such as validation groups and new JavaScript capabilities.
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 26 pdf
... OnSelectionChanged="Calendar1_SelectionChanged"></asp:Calendar> <br /> <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /> ... ControlToValidate="TextBox1" Type="Integer" Text="You must be between 30 and 40" MaximumValue="40" MinimumValue="30"></asp:RangeValidator> In this example, ... ID="CompareValidator1" Runat="server" Text="You must enter a number" ControlToValidate="TextBox1" Type="Integer" Operator="DataTypeCheck"></asp:CompareValidator>
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 27 pot
... associate the CustomValidator control to both the client-side and server-side functions. In the case of the number check validation from Listings 4-14 and 4-15, you can use both validation functions ... functions in your page and then change the CustomValidator control to point to both of these functions, as shown in Listing 4-16. Listing 4-16: The CustomValidator control with client- and server-side ... bv in Page.Validators) { bv.EnableClientScript = false; } } Looking for each instance of a BaseValidator object in the validators contained on an ASP.NET page, this For Each loop turns off client-side
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 28 pptx
... <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </td> <td> <asp:ContentPlaceHolder ID="ContentPlaceHolder2" ... Choosing the option to place your code in a separate file means that you use the new code-behind model with the page you are creating Selecting the check box ‘‘Place code in separate file’’ creates ... and possibly closed later! 230 Trang 7With the introduction of ASP.NET 1.0 in 2000, developers started using user controls to encapsulatecommon sections of their Web pages For instance, you could
Ngày tải lên: 05/07/2014, 18:20
professional asp.net 4.5 in c# and vb
... Application Adding Dynamic Data to an Existing Application Understanding Model Binding Attribute Driven UI Attribute Driven Validation Summary 44 3 44 4 44 5 44 5 44 8 44 9 45 0 45 2 45 3 CHAPTER 13: WORKING ... Providers Configuration Providers Summary 52 9 53 0 53 1 53 2 53 7 54 0 54 4 54 5 54 6 54 8 5 54 55 7 CHAPTER 15: EXTENDING THE PROVIDER MODEL 55 9 Providers Are One Tier in a Larger Architecture Modifying through ... Caching Caching Programmatically Data Caching Using the Cache Object Controlling the ASP. NET Cache Cache Dependencies NET 4. x’s New Object Caching Option Using the SQL Server Cache Dependency Enabling...
Ngày tải lên: 01/08/2014, 16:34
Professional ASP.NET 3.5 in C# and Visual Basic Part 170 doc
... debugger, 54 3 – 54 4 overview of, 53 7 53 8 speed of, 53 8 XslCompiledTransform class, 53 8– 54 1 XSLTC.exe command-line compiler, 53 9– 54 3 XSLTC.exe command-line compiler, 53 9– 54 3 XSLTCommand, 54 2 XsltSettings ... with WCFservice, data contracts, 13 74 WSDL and, 1378–1379 XML Editor as default view for, 50 5 XSD Designer, 50 5 XslCompiledTransform class, 53 8– 54 1 , 54 3 – 54 4 XSLT, 53 7– 54 4 databases and, 54 8 – 54 9 ... application packaging and deploying, 1 54 7 – 155 0 Custom Actions Editor, 156 2– 15 64 defined, 153 9–1 54 1 File System Editor, 15 54 155 7 File Types Editor, 155 9– 156 1 Launch Conditions Editor, 156 8– 156 9...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 5 ppsx
... performance of your ASP. NET applications This chapter looks at some of the advanced caching capabilities provided by ASP. NET, including the SQL cache invalidation feature which is part of ASP. NET 3 .5 ... to ASP. NET, be sure to check out Beginning ASP. NET 3 .5: In C# and VB by Imar Spaanjaars (Wiley Publishing, Inc., 2008) to help you understand the basics In addition to working with Web technologies, ... Configuration in ASP. NET can be a big topic because the ASP. NET team is not into building black boxes; instead, it is building the underlying capabilities of ASP. NET in a fashion that can easily be expanded...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 7 ppt
... specified NET Framework interface This directive supports only a single attribute: Interface The Interface attribute directly specifies the NET Framework interface When the ASP. NET page or user control ... references or members contained within the specified master page OutputCache Controls the output caching policies of a Page or user control Page Enables you to specify page speci c attributes and ... Evjen c0 1.tex V2 - 01/28/2008 12:27pm Chapter 1: Application and Page Frameworks ASP. NET 3 .5 Page Directives ASP. NET directives are something that is a part of every ASP. NET page You can control...
Ngày tải lên: 05/07/2014, 18:20
Professional ASP.NET 3.5 in C# and Visual Basic Part 8 doc
... If you create an ASP. NET 3 .5 page and turn on tracing, you can see the order in which the main page events are initiated They are fired in the following order: PreInit Init InitComplete PreLoad ... %> @OutputCache The @OutputCache directive controls the output caching policies of an ASP. NET page or user control This directive supports the ten attributes described in the following table ... 1: Application and Page Frameworks Cross-Page Posting One common feature in ASP 3.0 that is difficult to achieve in ASP. NET 1.0/1.1 is the capability to cross-page posting Cross-page posting enables...
Ngày tải lên: 05/07/2014, 18:20