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

Ashutosh GuptaPosted Jul 22, 2020, 3:23 AM
Jaimin ShethiyaPosted Jul 21, 2020, 1:32 AM
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
Jignesh KumarPosted Jul 21, 2020, 12:53 AM
siva nathanPosted Jul 21, 2020, 12:38 AM
Jenith ThakkarPosted Jul 21, 2020, 12:25 AM
var Data = Name.Split('@');
Var Username = Data[1];