开发者

Why object's name modified when there is a master page in asp.net projects?

I am creating a asp.net pr开发者_如何学JAVAoject that have one master page for all pages. Why my object's name for example my div with ID="div1" is changed to ctl00_ div1 when this object is in master page?


It is to ensure uniqueness of the id.

The Master Page can include content from multiple sources, so it prepends to each id to ensure it is unique across all sources. The value prepended represents the content section the content is within.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜