Updating the Browser Title


hi

i have below code update browser title.

 

htmlpage.window.eval(string.format("document.title='{0}'", title));

 but if value of title contains apostrape (') throwing error. have tryed @ , \ escape sequences. still getting error. suggesstions.

thanks

anandraj.a.

use escape character \"

htmlpage.window.eval(string.format("document.title=\"{0}\"", title));

 



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........