Click here to Skip to main content
15,903,849 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to display mobile number like 900**12 in asp.net how?
Posted
Updated 6-Dec-13 19:26pm
v2
Comments
Sergey Alexandrovich Kryukov 7-Dec-13 0:34am    
What do you mean "how"? By console output, or by assigning it to some string variable... by writing appropriate code.
No problem description, no answer.
—SA
shanthini24 7-Dec-13 1:19am    
means in display i want to hidden in between numbers in mobile number.
Sergey Alexandrovich Kryukov 7-Dec-13 1:26am    
Then just do it. What's the problem?
—SA
shanthini24 7-Dec-13 1:27am    
can u guide me how to format number to display like that..

1 solution

Depending on how you are accessing the original data, and how you display it, there are a couple of options.
The most obvious are:
1) string.Substring[^]
2) Regex.Replace[^]

It may be that you need to use a strong substitution function in your data source instead - it depends on how your existing code works at present.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900