 |
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
|
|
|
|

December 9th, 2006, 02:22 PM
|
Authorized User
|
|
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

December 11th, 2006, 08:29 AM
|
Authorized User
|
|
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

December 11th, 2006, 08:38 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|

December 11th, 2006, 08:48 AM
|
Authorized User
|
|
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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..
|

December 11th, 2006, 08:53 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|

December 11th, 2006, 09:13 AM
|
Authorized User
|
|
Join Date: Nov 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks a lot Imar for your immediate help. We solved our problem.
|
|
 |