Merhabalar, asp.net 4.5 ile geliştirdiğim bir web uygulamasında Profile ı kullanmaya calışıyorum ama code behind alanından profile ulaşamıyorum.
web.config dosyası
<anonymousIdentification enabled="true" />
<profile defaultProvider="AspNetSqlProfileProvider" enabled="true">
<providers>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="Baglan" ApplicationName="/"/>
</providers>
<properties>
<group name="Kisisel">
<add name="Isim" type="System.String" allowAnonymous="true" />
<add name="SoyIsim" type="System.String" allowAnonymous="true" />
<add name="EMail" type="System.String" allowAnonymous="true" />
<add name="TCNo" type="System.String" allowAnonymous="true" />
<add name="DogumGunu" type="DateTime" allowAnonymous="true" />
<add name="Cinsiyet" type="Boolean" allowAnonymous="true" />
<add name="WebSitesi" type="System.String" allowAnonymous="true" />
<add name="Meslek" type="System.String" allowAnonymous="true" />
<add name="SabitTelefon" type="System.String" allowAnonymous="true" />
<add name="CepTelefonu" type="System.String" allowAnonymous="true" />
<add name="Telefon2" type="System.String" allowAnonymous="true" />
</group>
<group name="Adres">
<add name="Ulke" type="System.String" allowAnonymous="true" />
<add name="Sehir" type="System.String" allowAnonymous="true" />
<add name="Semt" type="System.String" allowAnonymous="true" />
<add name="Mahhalle" type="System.String" allowAnonymous="true" />
<add name="Cadde" type="System.String" allowAnonymous="true" />
<add name="Sokak" type="System.String" allowAnonymous="true" />
<add name="Apartman" type="System.String" allowAnonymous="true" />
<add name="Kat" type="System.String" allowAnonymous="true" />
<add name="DaireNo" type="System.String" allowAnonymous="true" />
</group>
</properties>
</profile>
aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.Web.Profile;
namespace MedseyUltimate.Medsey
{
public partial class UserPreview : System.Web.UI.Page
{
public string YorumSayisi, SiparisSayisi, OnaylanmisSiparisSayisi, aciklama, websitesi, ulke, dogumtarihi, meslek;
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["UserId"] != null)
{
MembershipUser m = Membership.GetUser(Request.QueryString["UserId"]);
// ltAciklama.Text = System.Web.Profile
System.Web.Profile.
}
}
}
}
System.Web.Profile. Yazmak Zorunda Kalıyorum Sadece Profile yazamıyorum. Ayrıca
web.config dosyasında eklediğim profile özellikleride çıkmıyor. bunun nedeni ne
olabilir?
bunyaminabay.com