How to mask first 8 character in adhar image.
Adhar image mask
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
How to mask first 8 character in adhar image.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit MohantyRank #112 · 20K reputationPosted Oct 10, 2023, 5:33 AM EDT
You need to provide an explanation for the content and what you have accomplished so far.
Pritiranjan Rout178 reputationPosted Oct 10, 2023, 5:54 AM EDT
when uploading a adhar card, at that time first 8 character of adhaar no is masked and then save.
when bind in grid view then image is displayed with mask adhaar no
Rajeev KumarRank #1,334 · 1.3K reputationPosted Oct 10, 2023, 6:08 AM EDT
static void Main(string[] args) { string cardNumber = "345612343456"; var cardNumber1 = string.Format("########{0}", cardNumber.Substring(8, 4)); var maskedCardNumberWithSpaces = Regex.Replace(cardNumber1, ".{4}", "$0 "); Console.WriteLine(maskedCardNumberWithSpaces); Console.Read(); }