简体   繁体   中英

User controls are not visible at runtime in asp.net

I created a user control .ascx and added it in master page by dragging and drop so that registering and everything is done by automatically.i can see that usercontrol contains Menu in design time ,but when i run it i am not seeing it in UI. Strange i checked page inspector console tab ,but no error throwing only thing it showing is local site you have added it in compatibility view and HTML1527: DOCTYPE expected. The shortest valid doctype is “<!DOCTYPE html>” HTML1527: DOCTYPE expected. The shortest valid doctype is “<!DOCTYPE html>” .I am doing HTML 5 conversion also for this website which was in previous version ,but not complete.Can anybody tell me why this behavior

不幸的是,我注释掉了用于填充Menu的代码,并且Enableviewstate为false,现已更正并且可以正常工作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM