views:

53

answers:

1

Is the following valid? Are roles/usernames allowed to have whitespace?

<location path="MyPage.aspx">
 <system.web>
  <authorization>
   <allow role="Good User" />
  </authorization>
 </system.web>
</location>
+3  A: 

Yes, they are :-)

Actually, it depends on the MembershipProvider/RoleProvider. But all the standard ones (SQL, Windows, AD) permit spaces.

Tor Haugen