Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 16th, 2006, 06:54 PM
Registered User
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Wullie
Default Quick Question for Author of Chapter 11

Hello, I was working on Chapter 11 and have a small question to ask if the author of this chapter could help.

Im working throught the "TRY IT OUT: Using Profiles in Wrox United" and have made a slight change based on what I'm learning. However, as I'm still a beginner I was wondering if I made the wrong desicion.

Basically, I thought the convoluted syntax for safely retrieving the value of each control in the DisplayProfileProperties() could be very easily simplified.

Dim NameBox As TextBox = CType(FCLoginView.FindControl("txtName"), TextBox)
If Not (NameBox Is Nothing) Then
...
End If

Using the code you described four pages previous to this I thought it made a more elegant solution. This was done using the User.IsInRole() method.

If User.IsInRole("FanClubMember") Then
...
End If

Bascially, I was hopeing you could tell me if what I have done is wrong for any reason. If not, perhaps I will give myself a pat on the back.

Wullie

There are only 10 kinds of people.
Those who understand binary...and those who don't!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Question! arcadium Java GUI 1 August 5th, 2008 02:16 AM
chapter 11 figure 11-7 relative positioning pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 November 29th, 2007 06:11 AM
another quick question andyhague XSLT 2 March 21st, 2006 12:13 PM
Quick Question Ben Horne Forum and Wrox.com Feedback 1 March 22nd, 2004 03:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.