Forum  General Visual ...  How do I...?  Creation of custom controls
Previous Previous
 
Next Next
New Post 9/22/2011 11:52 PM
  Valter.Venturini
138 posts
5th Level Poster


Re: Creation of custom controls 

Hi palli,

Thank you for your reply. My custom control does not show up because there is the MetaDataTag set over the control. If I remove the MetaDataTag then the control shows up and works fine.

So, if I have understood properly, the MetaDataTag is needed only if the control does not inherits any VWG control, right?

Thank you, palli and all the other forum users

Daniele


R&D Team - Italstudio
 
New Post 9/23/2011 12:28 PM
  palli
14415 posts
1st Level Poster




Re: Creation of custom controls 

Hi Daniele,

Your observation is both true and false

By inheriting a Visual WebGui control, you are inheriting two inter-connected, but different parts of the control.

First is the server-side part, the one you program in C# or VB.NET. This part is not affected by the setting or not setting the MetaDataTab.

Second, there are the client resources part, which includes the XSLT, JS, CSS etc. It is in the XSLT transformations where the MetaDataTag matters.

So, Including a MetaDataTag setting, as you did in your problematic version of the control, you are inheriting the server-side code (the C# and VB.NET), but as you did change the MetaDataTag, but didn't supply any XSLT to handle that new tag, no Html code is created when your control is rendered to the browser. That's why I say it's both true and false.

Hope this explains,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  Creation of custom controls
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS