Have 2 problems so far...
Hi, i have 2 very irritating problems :)
1) It seems that saving user preferences works but not entirely. So far i have only 2 pages implemented - Home and Contact. If i change Theme from TemplateMonster to HTMLYellow when i'm viewing Contact pages it changes no problem, but when i click on Home, it changes to TemplateMonster. I have to Refresh Home page and only after that i can see PlainYellow theme. Then, if i click on Contact page, my theme will be reverted to TemplateMonster again. I have to hit Refresh here too to fix it.
In other words, i have to hit Refresh on every page in order to enjoy another theme.
Same thing is happening with logging in - if i log in in Home, and then click on Contact the LoginControl shows that i'm logged out. If i Refresh Contact page it shows the correct thing - that i'm logged in.
I really dont know what is going on...
This happens using Opera and IE, Firefox is fine. In Opera i completely disabled caching of webpages, didnt help.
2) My second problem is that altho i have this in my web.config file:
---------------------
<membership>
<providers>
<add <...>
minRequiredPasswordLength="3"
minRequiredNonalphanumericCharacters="0"
/>
</providers>
</membership>
---------------------
every time i'm trying to add a new user, either using Register page or Web administration tool, it always asks for password with 7 minimum length and 1 non-alphanumeric character:
"Password length minimum: 7. Non-alphanumeric characters required: 1."
Since the code in the Register.aspx uses "\w{5,}" to validate password, this means that i simply cant enter password at all :) Since non-alphanumeric character cant be matched by \w :)
I searched all files in my project but i couldnt find any other place where these settings are defined :)
I'm beginning to question whether it's me doing something wrong or if it's Microsoft...
p.s. Xp pro, Visual Studio 2005, SQL Server Express.
|