Hi all,
I am using wysiwyg Editor ,in that editor am typing @ and # handler to show the employees name and Emp no
if am typing @ it will display empname list and choosing that emp name same as # handler for Empno
@smith,@david,@andrew
#1122,#3344,#4455
i need to split that @ and # handler in c# and stored in db
Expected result
smith,david,andew
1122,3344,4455


Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 20, 2020, 8:25 PM EDT
var Data = Name.Split('@');
Var Username = Data[1];
siva nathanRank #1,695 · 899 reputationPosted Jul 20, 2020, 8:38 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jul 20, 2020, 8:53 PM EDT
Jaimin ShethiyaRank #177 · 13.7K reputationPosted Jul 20, 2020, 9:32 PM EDT
you have to installl this nuget package and check
Install-Package JamesHelper -Version 1.0.1
after install use "SanitizeString" this method and passed the special character need to remove that string and after you have to split with comma(,)
also refer the documentation "https://www.nuget.org/packages/JamesHelper#"
Thanks
Ashutosh GuptaRank #805 · 2.9K reputationPosted Jul 21, 2020, 11:23 PM EDT