Thread: Chapter11
View Single Post
  #1 (permalink)  
Old January 14th, 2009, 12:28 AM
jackSparrow jackSparrow is offline
Authorized User
Points: 60, Level: 1
Points: 60, Level: 1 Points: 60, Level: 1 Points: 60, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2008
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter11

Hi,
All, have anyone complited the Chapter 11 TIO(Using profile In WroxUnited)?Because while
running the WroxUnited website of the chapter11 folder I am getting NULL reference exception.
The exception is thrown from the file fanclub.aspx.cs and.The exception is shown for the following line
((TextBox)FCLoginView.FindControl("txtName")).Text = Profile.Name;
The code is as follows:
private void DisplayProfileProperties()
{
TextBox NameBox = (TextBox)FCLoginView.FindControl("txtName");


if (NameBox != null )
{
((TextBox)FCLoginView.FindControl("txtName")).Text = Profile.Name;
((TextBox)FCLoginView.FindControl("txtAddress")).T ext = Profile.Address;
((TextBox)FCLoginView.FindControl("txtCity")).Text = Profile.City;
((TextBox)FCLoginView.FindControl("txtCounty")).Te xt = Profile.County;
((TextBox)FCLoginView.FindControl("txtPostCode")). Text = Profile.PostCode;
((TextBox)FCLoginView.FindControl("txtCountry")).T ext = Profile.Country;
((CheckBox)FCLoginView.FindControl("chkMailing")). Checked = Profile.Mailings;
((TextBox)FCLoginView.FindControl("txtEmail")).Tex t = Profile.Email;
((TextBox)FCLoginView.FindControl("txtAlias")).Tex t = Profile.MemberName;
}

}


So again I am seeking help regarding this problem..
Thanx in advance.
Regards,
Subhasis
Reply With Quote