Re: Asp Administration Console
- From: PeterKellner <pkellnernews@xxxxxxxxxxxxxx>
- Date: Wed, 12 Jul 2006 21:19:34 -0700
On Wed, 12 Jul 2006 13:56:00 +0200, "Dzemal Tipura"
<dzemal.tipura@xxxxxxxxxx> wrote:
Hi I have a few questions about Admin Console in ASP 2.0
1. When I create user thought console is save him to aspnetdb file in
app_data folder. When I public web site do I have to copy on web server that
folder and that two files .mdf and .log?
2. How can I add extra fields when creating new user like Address, Street,
etc. and that they appears in all necessary login controls
3. If I have to transfer mdf and log files in which he saves users, roles
and others to some web server does web server must have sql 2005 installed?
4. How can I save users, roles and everything to my db in sql 2000 ?
Thx
Take a look at the article and code generator I published that lets
you deal with the extra fields via profile. It creates an
ObjectDataSource that you can use in a GridView or other control for
view and editing membership data including Profile info.
Here is the article
http://peterkellner.net/?p=29
and here is a live demo of a sample Profile (notice FirstName and
LastName fields which are not part of membership)
http://livedemos.peterkellner.net/AJAXDemo/DefaultWithProfile.aspx
And, finally, here is the code generator to use your own by cutting
and pasting in the a piece of your web.config that looks like what
I've pasted at the bottom
http://painfreeods.peterkellner.net/Default.aspx
<system.web>
<profile defaultProvider="SqlProfileProvider">
<providers>
<remove name="AspNetSqlProfileProvider"/>
<add name="SqlProfileProvider"
type="System.Web.Profile.SqlProfileProvider"
connectionStringName="LocalSqlServer"/>
</providers>
<properties>
<add name="FirstName" type="string"/>
<add name="LastName" type="string"/>
<add name="AdvancedMode" type="bool"/>
<group name="Address">
<add name="Street" type="string"/>
<add name="City" type="string"/>
<add name="State" type="string"/>
<add name="Zip" type="string"/>
</group>
</properties>
</profile>
Good Luck!
</system.web>
Peter Kellner
http://peterkellner.net
.
- References:
- Asp Administration Console
- From: Dzemal Tipura
- Asp Administration Console
- Prev by Date: Re: membership provider for the sam database
- Next by Date: forms authentication redirect problem
- Previous by thread: Asp Administration Console
- Next by thread: Re: membership provider for the sam database
- Index(es):
Relevant Pages
|
|