473,387 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Setting passwordStrengthRegularExpression outside of web.config

Is there anyway to set PasswordStrengthRegularExpressionon your
membership provider, without changing the web.config? I would like to
offer the user the ability to change the strength requirement for
their site, but I don't want to do it through the web.config file.
Yet, when I try membership.PasswordStrengthRegularExpression, it is
read-only.

I have found that with appsettings in the web.config, you can create a
seperate file, and set the appsettings to pull that info, ie:
<appSettings file="cfg.xml">. But, the membership provider doesn't
have this option.

Does anyone have any suggestions on how to achieve this?

Thanks in advance, Kathy
Jan 4 '08 #1
1 3237
membership works with providers
so you could create a provider that inherits from the sqlMembbership
provider ( or the provider your using)

create a method in your class that change with reflection the field that
olds PasswordStrengthRegularExpression, change in the web config the the
type of the membership provider to your class
and when you need to change the PasswordStrengthRegularExpression cast the
membership provider to your class and call your method

sorry my bad english
<kg***@tecolote.comwrote in message
news:13**********************************@s27g2000 prg.googlegroups.com...
Is there anyway to set PasswordStrengthRegularExpressionon your
membership provider, without changing the web.config? I would like to
offer the user the ability to change the strength requirement for
their site, but I don't want to do it through the web.config file.
Yet, when I try membership.PasswordStrengthRegularExpression, it is
read-only.

I have found that with appsettings in the web.config, you can create a
seperate file, and set the appsettings to pull that info, ie:
<appSettings file="cfg.xml">. But, the membership provider doesn't
have this option.

Does anyone have any suggestions on how to achieve this?

Thanks in advance, Kathy

Jan 6 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Maverick | last post by:
In normal application the set and get of appSettings are simply as following <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="Log" value="1" /> </appSettings>...
3
by: wuji | last post by:
Hi ! I understand that dotNet offers app.config to store application configuration as below: <configuration> <appSetting> <add key="MySettingKey1" value="MySettingValue1" /> <add...
1
by: Amit Bansal \(MCT, MCSD.NET\) | last post by:
the msdn documentation says that if we can do application level binding by specifying the masterpagefile attribute in web.config, so that all the pages in the application are bound to a master...
6
by: John H Clark | last post by:
I am designing a site that requires AnonymousID. I set my web.config to allow this using <anonymousIdentification enable="true".../as recommended in the documentation. To verify the settings I...
5
by: giddy | last post by:
Hi , I'm probably just doing something a little silly. I get a System.Configuration.ConfigurationErrorsException! This is my config file: <configSections> <section name="qConfig"...
0
by: chefwiggum | last post by:
I have an application wide configuration setting (pages theme) that is dynamic. Normally when you think of picking themes you think of the user selecting a theme (a per-user setting). In this...
3
by: Jeff | last post by:
ASP.NET 2.0 I'm wondering how to add a custom setting into web.config. From this website I'm doing a http request to another website, and I would like to have the webaddress of this other...
4
by: =?Utf-8?B?QmlsbCBNaWxk?= | last post by:
Feel free to let me know if there is a better place to post this question I'm a website developer trying to write a Windows Service, and I think I'm running into trouble due to the paradigm...
8
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.