برگزیده های پرشین تولز

مشکل در پروفایل

iranidesign

کاربر تازه وارد
تاریخ عضویت
3 جولای 2006
نوشته‌ها
62
لایک‌ها
0
من کد زیر رو در کامفیگم نوشتم db رو هم ok کردم کنترل های لاگین رو هم گذاشتم ولی باز وقی می خواهم برای مشخصات ریز اعضا به صفحه پروفایل بفرسم داخل صفحه پروفایل وقتی میخوام مقدار textbox ها رو بریزم داخل پروفایل یعنی این طوری :
کد:
profile.name=textbox1.text

ولی زیرش خط ابی میکشه و ارور میگیره اینم کانفیگم

کد:
[LEFT]<?xml version="1.0" encoding="utf-8"  ?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  <configSections>
    <sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup">
      <section name="converters" type="Microsoft.Web.Configuration.ConvertersSection" requirePermission="false"/>
      <section name="webServices" type="Microsoft.Web.Configuration.WebServicesSection" requirePermission="false"/>
      <section name="authenticationService" type="Microsoft.Web.Configuration.AuthenticationServiceSection" requirePermission="false"/>
      <section name="profileService" type="Microsoft.Web.Configuration.ProfileServiceSection" requirePermission="false"/>
    </sectionGroup>
  </configSections>
  <!-- 
      The microsoft.web section defines items required for the Atlas framework.
  -->
  <microsoft.web>
    <converters>
      <add type="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/>
      <add type="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/>
      <add type="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/>
    </converters>
    <webServices enableBrowserAccess="true"/>
  </microsoft.web>
  <appSettings>
    <add key="profile" value="profile" />
  </appSettings>
  <connectionStrings>
    <!--
          ///////////////////    here is Database Setting ////////////////////////////
      -->
    <add name="MyDB" connectionString="Server=localhost;Database=xxxx;uid=sa;pwd=;Integrated Security=True"/>
  </connectionStrings>
  <system.web>
   <!--  <customErrors defaultRedirect="default.aspx"/>-->
    <trace enabled="true" localOnly="false" mostRecent="true" requestLimit="50" traceMode="SortByCategory"/>
    <httpHandlers>
      <remove verb="*" path="*.asmx"/>
      <add verb="*" path="*.asmx" type="Microsoft.Web.Services.ScriptHandlerFactory" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/>
      <!-- <add name="ParsStat" type="ministatnet, ParsStat"/>-->
    </httpModules>
    <pages>
      <controls>
        <add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
        <add namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/>
      </controls>
      <namespaces>
        <clear/>
        <add namespace="System"/>
        <add namespace="System.Collections"/>
        <add namespace="System.Collections.Specialized"/>
        <add namespace="System.Configuration"/>
        <add namespace="System.Text"/>
        <add namespace="System.Text.RegularExpressions"/>
        <add namespace="System.Web"/>
        <add namespace="System.Web.Caching"/>
        <add namespace="System.Web.SessionState"/>
        <add namespace="System.Web.Security"/>
        <add namespace="System.Web.Profile"/>
        <add namespace="System.Web.UI"/>
        <add namespace="System.Web.UI.WebControls"/>
        <add namespace="System.Web.UI.WebControls.WebParts"/>
        <add namespace="System.Web.UI.HtmlControls"/>
      </namespaces>
    </pages>
    <authentication mode="Forms"/>
    <roleManager enabled="true" defaultProvider="CustomizedRoleProvider">
      <providers>
        <add name="CustomizedRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="MyDB" applicationName="testApp"/>
      </providers>
    </roleManager>
    <membership defaultProvider="CustomizedMembershipProvider">
      <providers>
        <add name="CustomizedMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="MyDB" applicationName="testApp"/>
      </providers>
    </membership>
    <profile defaultProvider="SqlProvider" enabled="true">
      <providers>
        <add name="SqlProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="MyDB" applicationName="testApp"/>
      </providers>
      <properties>
        <add name="name" type="String" serializeAs="String"/>
        <add name="LastName" type="String" serializeAs="String"/>
        <add name="reshteh" type="String" serializeAs="String"/>
        <add name="Gender" type="String" serializeAs="String"/>
        <add name="city" type="String" serializeAs="String"/>
        <add name="phone" type="String" serializeAs="String"/>
        <add name="adres" type="String" serializeAs="String"/>
        <add name="sen" type="String" serializeAs="String"/>
      </properties>
    </profile>
    <compilation debug="true"/>
    <globalization
             requestEncoding="utf-8"
             responseEncoding="utf-8"
   />
  </system.web>
</configuration>[/LEFT]


به نظرتون مشکل چیه ؟؟؟؟

راستی visual studio من 2008 هست ولی از frame work 2 استفاده میکنم!!!!
 
بالا