Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I put a vsdoc reference in the Master Page, why is IntelliSense not working in a User Control?

0
Posted

I put a vsdoc reference in the Master Page, why is IntelliSense not working in a User Control?

0

User Controls do not specify a master page. Thus, there is no way for Visual Studio to guess which master page the user control will end up on. Generally, we simply can’t predict which file a user control will end up on. Thus, we are unable to provide IntelliSense. “Shail” provided the best suggestion, which is just to include a list of script references you want on your user control, then wrap those controls with a “<% if (false) ... %>” to make sure you don’t redundantly include scripts at runtime. I can see a centralized list of references helping this scenario, which leads into the next question…

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123