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 December 9th, 2006, 02:22 PM
Authorized User
 
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to yasminnnnn
Default user profile creation problem

hello

this is how my web.config file looks. when i run the site, i face the problem

"Error 1 The property name specified is invalid. (C:\Documents and Settings\Neslihan\Desktop\mis\492\vs\web.config line 81)
.......................
web.config

<configuration>
 <appSettings>
  <add key="AMS" value="AMS" />
 </appSettings>

  <connectionStrings>
       <remove name="LocalSqlServer"/>
       <add name="LocalSqlServer" connectionString="Data Source=localhost;Initial Catalog=dernek;Integrated Security=True" providerName="System.Data.SqlClient"/>
     </connectionStrings>

  <system.web>
        <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
  <roleManager enabled="true" />
    <!--<customErrors mode="RemoteOnly" defaultRedirect="~/Missing.aspx" >
    <error statusCode="403" redirect="NoAccessPage.htm" />
            <error statusCode="404" redirect="FileNotFoundPage.htm" />
        </customErrors>-->
  <compilation debug="true"/>
        <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
    <authentication mode="Forms">
      <forms loginUrl="Default.aspx"></forms>
    </authentication>


        <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.
    -->
    <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
      <providers>
        <add name="XmlSiteMapProvider"
                    description="Default SiteMap provider."
                    type="System.Web.XmlSiteMapProvider "
                    siteMapFile="Web.sitemap"
                    securityTrimmingEnabled="true"/>
      </providers>
    </siteMap>


      <profile enabled ="true" >
        <properties>
        <add name="UserName"/>
        <add name="Name"/>
        <add name="Surname"/>
        <add name="Address"/>
        <add name="City"/>
        <add name="County"/>
        <add name="PostCode"/>
        <add name="Country"/>
        <add name="Email"/>
        <add name="Association id"/>
        </properties>
    </profile>
  </system.web>

</configuration>
...............................................
what could be the problem? may it be related to provider?

thanks

 
Old December 9th, 2006, 02:26 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You can't have property names with a space in it:

Association id

should be

AssociationId

HtH,

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old December 11th, 2006, 08:29 AM
Authorized User
 
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to yasminnnnn
Default

thanks a lot Imar,
how can i convert these code lines of my userProfile.aspx.cs page into c#:
......................
Profile.Name = CType(FCLoginView.FindControl("txtName"), TextBox).Text

..............................
and
..............................
CType(FCLoginView.FindControl("txtName"), TextBox).Text = Profile.Name
..............................
ps:i dont have a loginview on the specified page

 
Old December 11th, 2006, 08:38 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If there's no FormView in your page, I don't know how to change the code, as it deals exclusively with a FormView....

Can you elaborate a bit about what you're trying to do and maybe post some more code.

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old December 11th, 2006, 08:48 AM
Authorized User
 
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to yasminnnnn
Default

i am trying to get the profile information of a user via textboxes and create a profile for him/her and also to display the profile characteristics of him/her if wished.

if it is neccessary, i can put my texboxes in a loginview.

thanks..

 
Old December 11th, 2006, 08:53 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If you have just text boxes and no FormView, you can simply do this:

Profile.Name = txtName.Text;

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old December 11th, 2006, 09:13 AM
Authorized User
 
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to yasminnnnn
Default

thanks a lot Imar for your immediate help. We solved our problem.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmatic Creation of FTP User Accts JackHerr Pro Visual Basic 2005 0 November 30th, 2007 04:05 PM
user profile trouble Maxxim BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 October 9th, 2007 06:24 PM
Edit User Profile - email garydarling BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 September 29th, 2006 06:58 AM
User Profile edgelogix Pro PHP 1 December 3rd, 2005 04:17 PM
User Creation in SQL Server Database angie C# 1 June 12th, 2003 04:32 AM





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