... ptg
148
CHAPTER 3 Using the Validation Controls
The page in Listing 3.10 contains a CompareValidator control. Its Type property has the
value Date, and its Operator property has the ...
<!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<script runat=”server”>
void Page_Load()
{
cmpDate.ValueToCompare...
... other operating system, an ASP. NET page executes in the
security context of the ASPNET account.
To enable ASP. NET Framework to save an uploaded file to a particular folder, you need to
right-click ...
<InsertParameters>
< ;asp: ControlParameter Name=”FileName” ControlID=”upFile”
PropertyName=”FileName” />
< ;asp: ControlParameter Name=”FileBytes” ControlID=”upFile”
P...
... of Wow! eBook
ptg
42 1
Using ASP. NET Parameters with the SqlDataSource Control
9
LISTING 9.22 ShowProfileParameter.aspx
<%@ Page Language=”C#” %>
<!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML ... />
</InsertItemTemplate>
< /asp: FormView>
From the Library of Wow! eBook
ptg
42 0
CHAPTER 9 Using the SqlDataSource Control
Using the ASP. NET ProfileParameter Obje...
... parameters passed to the method represented by
the UpdateMethod property.
. DeleteParameters—Collection of parameters passed to the method represented by
the DeleteParameters property.
. FilterParameters—Collection ... method represented by
the SelectMethod property.
. InsertParameters—Collection of parameters passed to the method represented by
the InsertMethod property.
. UpdateParamete...
... Listing 18. 18 includes an AllowPaging property set to the value
True. Setting this property enables user interface paging.
The ObjectDataSource control in Listing 18. 18 represents the MovieUIPaging ... DataObjectTypeName property. This property
contains the name of an object used with the UpdateEmployee() method. When the
UpdateEmployee() method is called, an instance of the CompanyEmp...
... Listing 20.20 with the ASP. NET page in Listing 20.21.
LISTING 20.21 Standard\ShowCachedMovies.aspx
<%@ Page Language=”C#” Trace=”true” %>
<!DOCTYPE html PUBLIC -/ /W3C//DTD XHTML 1.0 ... );
The expression new {m.Id, m.Title} creates an anonymous type that has two properties:
Id and Title. The names of the properties of the anonymous type are inferred. If you
want to be more...
... folder and page
structure:
Default.aspx
Products
FirstProduct.aspx
SecondProduct.aspx
Services
FirstService.aspx
SecondService.aspx
The navigational structure of a website as represented by ...
<siteMapNode
url=”~/Products/FirstProduct.aspx”
title=”First Product”
description=”The first product” />
<siteMapNode
url=”~/Products/SecondProduct.aspx”
title=”Second Product”
descri...