This is a migrated thread and some comments may be shown as answers.

Comments in RadCodeBlock

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gosha
Top achievements
Rank 1
Gosha asked on 08 Oct 2010, 06:13 PM
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

Sort by
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
Tags
General Discussions
Asked by
Gosha
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or