... 33 2
Cross-Application Sharing of Ticket 33 3
Enforcing Single Logons and Logouts 35 8
Enforcing a Single Logon 35 9
Enforcing a Logout 36 8
Summary 37 2
Integrating ASP. NETSecurity with Classic ASP ... to produce a better Web application.
Professional ASP. NET3.5
978-0-470-18 757 -9
Professional ASP. NET3.5 helps the experienced programmer put the latest ASP. NET technologies into action. Greatly ... book.
7 930 1flast.indd 28 10/6/08 12:06:27 PM
Professional
ASP. NET3.5 Security, Membership, and
Role Management
with C# and VB
Enhance Your Knowledge
Advance Your Career
Professional ASP. NET3.5 Security, ...
... the less publicized security features in ASP. NET 2.0 and ASP. NET3.5.
The book switches gears in Chapter 10 to address two security services in ASP. NET 2.0 and ASP. NET3. 5:
Membership and Role ... of Ticket 33 3
Enforcing Single Logons and Logouts 35 8
Enforcing a Single Logon 35 9
Enforcing a Logout 36 8
Summary 37 2
Integrating ASP. NETSecurity with Classic ASP 37 Chapter 7: 3
IIS 5 ISAPI Extension ... Mode 38 7
Authenticating Classic ASP with ASP. NET 38 9
Will Cookieless Forms Authentication Work? 39 1
Passing Data to ASP from ASP. NET 39 2
Passing Username to ASP 39 4
Authenticating Classic ASP...
... 1: Application and Page Frameworks
Figure 1 -5
The ASP. NET Page Structure Options
ASP. NET3.5 provides two paths for structuring the code of your ASP. NET pages. The first path utilizes
the code-inline ... from ASP. NET 1.0/1.1, you can see that a lot of the code that developers never
have to deal with is hidden in the
#Region
section of the page. Because ASP. NET3.5 is built on top
of .NET 3. 5, which ... is compiled. Because
ASP. NET3.5 combines all this page code for you behind the scenes when the application is compiled,
the code-behind files you work with in ASP. NET3.5 are simpler in appearance...
... e)
{
MultiView1.ActiveViewIndex += 1;
}
<
/script
>
1 75
Evjen c 03. tex V2 - 01/28/2008 12 :33 pm Page 174
Chapter 3: ASP. NET Web Server Controls
Listing 3- 39: Uploading the file contents into a Byte array
VB
Dim ... including the
final step in the series. Figure 3- 46 shows a Cancel button in a step.
Figure 3- 46
182
Evjen c 03. tex V2 - 01/28/2008 12 :33 pm Page 1 83
Chapter 3: ASP. NET Web Server Controls
After you decide ... Then
MultiView1.ActiveViewIndex = 0
End If
End Sub
174
Evjen c 03. tex V2 - 01/28/2008 12 :33 pm Page 182
Chapter 3: ASP. NET Web Server Controls
Figure 3- 45
Working with the Wizard’s Navigation System
As stated...
... values:
❑
Equal
❑
NotEqual
❑
GreaterThan
❑
GreaterThanEqual
❑
LessThan
❑
LessThanEqual
❑
DataTypeCheck
2 05
Evjen c04.tex V2 - 01/28/2008 12:45pm Page 210
Chapter 4: Validation Server Controls
Figure 4 -5
Listing 4- 13: Making sure the text-box value is an e-mail address
Email:
<
asp: TextBox ... with the CompareValidator control
Age:
<
asp: TextBox ID="TextBox1" Runat="server"
><
/asp: TextBox
>
<
asp: CompareValidator ID="CompareValidator1" ... Evjen c04.tex V2 - 01/28/2008 12:45pm Page 207
Chapter 4: Validation Server Controls
As you can see from the screenshots in Figure 4 -3, a value of less than 30 causes the RangeValidator
control...
... (You
can find a lot of blogs to play with for this example at
weblogs .asp. net.
)
Figure 10 -5
53 5
Evjen c10.tex V2 - 01/28/2008 2:13pm Page 52 7
Chapter 10: Working with XML and LINQ to XML
namespaceMgr.AddNamespace("b", ... manner:
DataFile="http://www.someserver.com/GetWeather.asmx/ZipWeather?zipcode= 633 01"
53 6
Evjen c10.tex V2 - 01/28/2008 2:13pm Page 53 0
Chapter 10: Working with XML and LINQ to XML
DataSets
The
System.Data
namespace ... relational view is not lost, but
becomes available to the DataSet’s APIs.
53 1
Evjen c10.tex V2 - 01/28/2008 2:13pm Page 53 3
Chapter 10: Working with XML and LINQ to XML
node.InnerText = "Boss";
doc.DataSet.EnforceConstraints...
... Manager takes the hierarchical nature of the IIS7 and ASP. NET3.5
integrated configuration system into account. Let’s begin with the ASP. NET3.5 configuration settings.
Launch the IIS Manager again, ... or
developers to mess with the Web server settings from a security perspective. IIS7 and ASP. NET3.5
integrated configuration system has taken this security issue into account. Because of the hierarchical
nature ... 2008 and pick up Professional IIS 7 and
ASP. NET Integrated Programming from Wrox for an in-depth look at the IIS 7 programming model.
58 6
Evjen c11.tex V1 - 01/28/2008 2:21pm Page 5 83
Chapter 11:...
... systems such as the
ASP. NET Web Site Administration Tool or through the new ASP. NET MMC snap-in. Both of these items
are covered in detail in Chapter 32 . An example of using the ASP. NET MMC snap-in ... name="EventLogProvider"
type="System.Web.Management.EventLogWebEventProvider,
System.Web,Version=2.0.0.0,Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
<add connectionStringName="LocalSqlServer"
maxEventDetailsLength="10 737 418 23& quot; buffer="false"
bufferMode="Notification" ... name="SqlWebEventProvider"
type="System.Web.Management.SqlWebEventProvider,
System.Web,Version=2.0.0.0,Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" />
<add name="WmiWebEventProvider"
type="System.Web.Management.WmiWebEventProvider,
System.Web,Version=2.0.0.0,Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"...
... provider model found in ASP. NET3.5 and explained how it is used
with the membership and role management systems.
As discussed in the previous chapter, these systems in ASP. NET3.5 require that some ... within your ASP. NET3.5 application.
Actually, providers are not that difficult to put together (as you will see shortly) and can even be created
directly in any of your ASP. NET3.5 projects. ... /
>
<
add name="AspNetSqlMembershipProvider"
type="System.Web .Security. SqlMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
632
Evjen...
... provided with the .NET Framework 2.0.
Using the ASP. NET SQL Server Setup Wizard is covered in detail in Chapter 12.
To use this wizard to set up your SQL Server for the ASP. NET3.5 personalization ... Server provider,
AspNetSql2005ProfileProvider
. You can also make this change to the
machine.config
file by changing
the
<
profile
> element, as shown in Listing 15- 25.
Listing 15- 25: Using SQL ... of built-in personalization providers that ship with ASP. NET. These providers
755
Evjen c 15. tex V2 - 01/28/2008 2:44pm Page 747
Chapter 15: Personalization
If you worked with the SQL Server personalization...
... user types or preferences. Authorization is provided in ASP. NET3.5 using a role
management service.
ASP. NET3.5 Authentication
ASP. NET3.5 provides the membership management service to deal with ... the
ASPNETDB.mdf
file, you work with the ASP. NET server controls
that utilize an aspect of the membership service. When the application requires the
ASPNETDB.mdf
file,
ASP. NET creates this file on your behalf ... 16-4
A note regarding the passwords used in ASP. NET3. 5: If you are having difficulty entering users because
of a password error, it might be because ASP. NET requires strong passwords by default....
... are using
the .NET Framework 2.0, it is an extra component that you must download from the Internet. If
you are using ASP. NET3. 5, you don’t have to worry about installing the ASP. NET AJAX toolkit ... id="Button1"
style="color:White;background-color: #33 33FF;border-color:Silver;
border-width:3px;
border-style:Double;font-size:Large;font-weight:bold;" />
Setting style properties directly on the ASP. NET controls is a ... 18- 13 shows how you can use the
CssClass
attribute to
style the ASP. NET Button control.
Listing 18- 13: Styling a standard ASP. NET Button control using CSS
<!DOCTYPE html PUBLIC "-//W3C//DTD...
... 01/28/2008 3: 13pm Page 9 45
Chapter 20: ASP. NET AJAX Control Toolkit
box. The CalendarExtender control gives you all the client-side code required for this kind of action.
Listing 20 -5 shows you ... title"
><
/asp: Label
>
<
asp: Label ID="Label1" runat="server"
Text="[Click to expand or collapse]"
><
/asp: Label
>
<
/asp: Panel
>
<
asp: Panel ... in the documentation for the animations that
940
Evjen c20.tex V2 - 01/28/2008 3: 13pm Page 938
Chapter 20: ASP. NET AJAX Control Toolkit
runat="server" TargetControlID="Panel1"...