Here how we are getting user company name from session in aspx page
var Details = "AgentCompanyName=" + encodeURIComponent("<%=((Agent_Html5.AgentClassLib.clsAgentSession)Session["UserSession"]).strAgentCompanyName%>");
above code works fine if strAgentCompanyName
doesn't contain quote(single,double) but that in it then it not works.
eg. if Agent company name name provided as : David "Mike" Bela solution then it raise error as
it is not appropriate string near Mike keyword.
Details = "AgentLastName= David "Mike" Bela solution"
How to handle for single/double quote?