| re: how to use WebPart in asp.net2.0
Hi frds
I got the solution
Actually in my sqlserver 2000 I don't have "aspnedb" database
to have this
1)go to C:\windows\Microsoft.NET\Framework\version\
in this select aspnet_regsql.exe
when u select this a wizard will be opened select the required one, and by deafult databse="default"
note:if u wont change this then by default it will giv name as aspnetDb
2)click finish
then it will create a database with name "aspnetDb"
3) now go to ur application open web.config file and add the following statements
<connectionStrings>
<add name="MyDb" connectionString="Data Source=YourServer;Initial Catalog=aspnetdb;Integrated Security=True" providerName="System.Data.SQLClient"/>
</connectionStrings>
<system.web>
<webParts enableExport="true">
<personalization defaultProvider="MyWebPartsProvider">
<providers>
<add name="MyWebPartsProvider" connectionStringName="MyDb" type="System.Web.UI.WebControls.WebParts.SqlPerson alizationProvider"/>
</providers>
</personalization>
</webParts>
<membership defaultProvider="AspNetSqlMembershipProvider">
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider,Sy stem.Web, Version=2.0.0.0,
Culture=neutral,PublicKeyToke n=b03f5f7f11d50a3a" connectionStringName="MyDb" applicationName="/CustomConnection"/>
</providers>
</membership>
</system.web>
4)now run da application
i don't know whats the use of "personalization and membership" my problem solved
can anyone tell what is the use of those those 2 elements
thank u
Archu
|