How can I generate the serial key and how can it be validated by the application?
i am sending a question.
plz help me............!!!
2.How can I generate the key and how can it be validated by
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Shivanand ArurRank #920 · 2.3K reputationPosted May 3, 2013, 2:17 AM EDT
amir ansari91 reputationPosted May 3, 2013, 2:24 AM EDT
Shivanand ArurRank #920 · 2.3K reputationPosted May 3, 2013, 2:41 AM EDT
public static string GenerateUniqueId()
{
long i = 1;
foreach (byte b in Guid.NewGuid().ToByteArray())
{
i *= ((int)b + 1);
}
return string.Format("{0:x}", i - DateTime.Now.Ticks);
This method will help u fetch a unique ID each time u run it. U can then use this ID and can store it in the database for a particular row. Apply ur logic for validation.
Please mark the answer as accepted if it helped.