2
Answers

User Authentication For password in Casesensitive.

Venki

Venki

11y
1.5k
1
Hai , My doubt is.

i had a registration page where i can register the user with password and some other feilds. I am  registering Pasword with both uppercase and Lowercase letters. while i am Logging in if i have entered with all Lowercase it is Accepting as a password. i am using Sql server 2008 R2. With C#4.0.

How can i get a Secure authentication for password with both lowercase and uppercase letters
Answers (2)
0
Vulpes

Vulpes

NA 98.3k 1.5m 12y
You can get a string array containing the 6 attribute values using LINQ to XML as follows:

using System.Linq;
using System.Xml.Linq;
using System.IO;

// ...

XElement root = XElement.Load("maha.xml");
string[] values = root.Element("Serial").Element("Current").Attributes().Select(a => 
a.Value).ToArray();

You should find that:

values[0] will contain : 11 March 2011
values[1] will contain : 10 Rabi-Ul-Awal 1434

and so on.

It's then just a matter of assigning the appropriate values to your textblocks.