When I add comments in JavaScript functions (with //) they all can be seen on client browser with "View Source" option. Is this normal? In my opinion this should not be seen.
1 Answer, 1 is accepted
0
Tsvetina
Telerik team
answered on 13 Oct 2010, 03:11 PM
Hi Sasa,
The RadCodeBlock and RadScriptBlock are not controls meant to modify javascript, they are just used to wrap the code, so no exceptions are thrown when AJAX is used in the page. That is why, apart from this functionality, they do not change the default code generation mechanism (which does show comments in javascript). For further reading on these controls' purpose, you can view this help article.
Kind regards,
Tsvetina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items