我試圖使用ASP.net型材我跟着一些指令,這意味着我有我需要幫助配置ASP.net簡介
- 成立ASPNETDB(使用的SQLExpress 2005)
- 一配置(在web.config)配置文件提供者
- 定義的一些屬性
- 啓用驗證
但我似乎無法使用像代碼(即IntelliSense不喜歡它)
Profile.UserCustomContent = "Hi Mom";
很明顯我錯過了什麼重要,但我看不到,請幫我...
這裏有一些剪從我web.config
<connectionStrings>
<add name="SqlServices"
connectionString="Data Source=localhost;Integrated Security=SSPI;Initial Catalogue=aspnetdb" />
</connectionStrings>
<system.web>
<authentication mode="Windows" />
<authorization>
<deny users="?"/>
</authorization>
<profile enabled="true" defaultProvider="SqlServices">
<providers>
<clear/>
<add name="SqlProvider" type="System.Web.Profile.SqlProfileProvider"
connectionStringName="SqlServices" applicationName="MyInternalApplication" />
</providers>
<properties>
<add name="UserSearchFilterOptions" type="String" />
<add name="UserCustomContent" type="String"/>
</properties>
</profile>
</system.web>
我發現Asp.Net入門套件非常適合搞清楚這樣的事情......還.. http://msdn.microsoft.com/en -us/asp.net/aa336558。aspx – madcolor 2009-04-07 16:23:09