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
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
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.
There are only 10 kinds of people.
Those who understand binary...and those who don't!