Posts Tagged ‘content’

How to put javascript in a page using masterpage?

星期一, 五月 12, 2008 15:23 No Comments

Question:
How to put javascript in a page using masterpage? Error message: Validation (XHTML 1.0 Transitional): Content is not supported outside ’script’ or ‘asp:content’ regions.
Answer:
Place the script inside the <asp:content> tag. Because you are using content area and a master page, the
id will be prefixed with the master and content area names. you should use ClientId [...]

This was posted under category: 工作 Tags: , , ,