elena
پنج شنبه 13 مهر 1391, 05:51 صبح
سلام به همگی،تو استفاده از پروفایل دات نت مشکل دارم،تو قسمت web.config این کدها رو وارد میکنم
<profile>
<properties>
<add name="firstname" type="system.string"/>
<add name="lastname" type="system.string"/>
</properties>
</profile> تو رویداد باتن کیلیک هم کدهای زیر رو Profile.firstname = TextBox1.Text;
Profile.lastname = TextBox2.Text;
ولی پیغام خطا میده:this property cannot be set for anonymous users
<profile>
<properties>
<add name="firstname" type="system.string"/>
<add name="lastname" type="system.string"/>
</properties>
</profile> تو رویداد باتن کیلیک هم کدهای زیر رو Profile.firstname = TextBox1.Text;
Profile.lastname = TextBox2.Text;
ولی پیغام خطا میده:this property cannot be set for anonymous users