How to Split @ in MVC JQuery

 
   In this MVC @ is The Special Character.  So normal split function is (string.split('@')) in this Case Did Not Use @ in MVC. Getting Error on this Page.

  In MVC You Can Use @@ . I Mentioned One Example Below . I Will Split Only Domain Name in MVC and C#. If You Are Using Single @ You Will Get The Server Side Error.

var EmailDomain = txtemail.split("@@")[1];

Comments

Popular posts from this blog

Display Canvasjs Line Chart using Data from Database

What are the SOLID principles, and why are they important

Write Text in Notepad files Using Asp.net