Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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
  #1 (permalink)  
Old February 23rd, 2007, 10:03 AM
Registered User
 
Join Date: Feb 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default custom membership retrieve profile problem

        Dim p As ProfileCommon = ProfileCommon.Create(CreateUserWizard1.UserName, True)
        p.MobileNumber = ((CType(CreateUserWizard1.CreateUserStep.ContentTe mplateContainer.FindControl("mobilenumber"), TextBox)).Text)

        p.Age = ((CType(CreateUserWizard1.CreateUserStep.ContentTe mplateContainer.FindControl("age"), TextBox)).Text)

        p.Gender = ((CType(CreateUserWizard1.CreateUserStep.ContentTe mplateContainer.FindControl("gender"), TextBox)).Text)

        p.Save()


i've refer to thread http://p2p.wrox.com/topic.asp?TOPIC_ID=41084 but
but if i didn't put this in web config :
        <profile>
            <properties>
                <add name="MobileNumber" type="String" />
                <add name="Gender" type="String" />
                <add name="Age" type="String" />
            </properties>
        </profile>
I'll get 'ProfileCommon' is not defined. how can i retrieve the mobile no, gender and age because the aspnet_profile is empty


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Membership Provider Scott663 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 1st, 2008 05:16 PM
Membership and Profile Providers - Mixing the Two robzyc ASP.NET 2.0 Basics 0 April 29th, 2008 03:49 AM
Export Membership Profile Data vickyc ASP.NET 2.0 Professional 0 October 11th, 2007 04:12 PM
problem with custom membership provider hertendreef ASP.NET 2.0 Professional 8 April 17th, 2007 12:11 PM
custom membership provider msrnivas General .NET 1 September 18th, 2005 04:28 AM





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