Enabling Intellisense
-
Hello all, this is my first post here and I hope someone can help me out! I have a series of custom server controls that I am using in an asp.net web application. I have built the controls and the xsd schema file. Everything is working great when I use these custom controls within an .aspx page. But, I am now presented with an odd scenario. We have some UserControls that also need to host some of these custom server controls. Our user controls do not have or tags so I am now confused as to wiring the schema file. (In an aspx page I would simply add the following to the tag): Does anyone know if there is an alternative way to *wire* this up other than using this body tag syntax? Perhaps a Meta tag or something? Ive been googling for a while and have found nothing. Thanks! Jason
-
Hello all, this is my first post here and I hope someone can help me out! I have a series of custom server controls that I am using in an asp.net web application. I have built the controls and the xsd schema file. Everything is working great when I use these custom controls within an .aspx page. But, I am now presented with an odd scenario. We have some UserControls that also need to host some of these custom server controls. Our user controls do not have or tags so I am now confused as to wiring the schema file. (In an aspx page I would simply add the following to the tag): Does anyone know if there is an alternative way to *wire* this up other than using this body tag syntax? Perhaps a Meta tag or something? Ive been googling for a while and have found nothing. Thanks! Jason
Hi Jason, You can try with one of the following ways: + Place the XSD files in the [Visual Studio.Net installation folder]\Common7\Packages\schemas\xml directory. + Include the XSD files as normal items in your project which you want to use Intellisense.
-
Hello all, this is my first post here and I hope someone can help me out! I have a series of custom server controls that I am using in an asp.net web application. I have built the controls and the xsd schema file. Everything is working great when I use these custom controls within an .aspx page. But, I am now presented with an odd scenario. We have some UserControls that also need to host some of these custom server controls. Our user controls do not have or tags so I am now confused as to wiring the schema file. (In an aspx page I would simply add the following to the tag): Does anyone know if there is an alternative way to *wire* this up other than using this body tag syntax? Perhaps a Meta tag or something? Ive been googling for a while and have found nothing. Thanks! Jason
Hi Jason, I failed to mention how to wire up the custom schema in my previous post, I'm so sorry about that. What I have been thinking is to edit the asp.xsd file, but it is clearly not recommended as it could mess up other ASP.NET controls and would be lost when the framework is updated. So what I am trying now is to add the body tag in the user control while developing, it should be working but it sounds like a pain. I'm sorry again as my posts could not help. Adding Design-Time Support to ASP.NET Controls[^] [Edit] You can also try with the div tag, it's working in my Visual Studio but you need to consider the UI at the client side:
<div xmlns:hh="urn:http://www.mysite.com/BrandModule/schemas">
...
</div> -
Hi Jason, I failed to mention how to wire up the custom schema in my previous post, I'm so sorry about that. What I have been thinking is to edit the asp.xsd file, but it is clearly not recommended as it could mess up other ASP.NET controls and would be lost when the framework is updated. So what I am trying now is to add the body tag in the user control while developing, it should be working but it sounds like a pain. I'm sorry again as my posts could not help. Adding Design-Time Support to ASP.NET Controls[^] [Edit] You can also try with the div tag, it's working in my Visual Studio but you need to consider the UI at the client side:
<div xmlns:hh="urn:http://www.mysite.com/BrandModule/schemas">
...
</div>Ahh, a div tag huh. Great, I will give it a try. Thanks