I have a schema "control" having a field named "tag" (text type) . Now I have created a component with this schema and fill the "tag" field as :
<RegForm:MyRegisteration runat="server" />
and updated web config file.
<add src="~/WebUserControl.ascx" tagName="MyRegisteration" tagPrefix="RegForm" />
I have added the Component to the Page.
Now I want to know is this the way to render the controls or any other better approach to do so.
As I mentioned in some other posts, Tridion doesn't really care about what you're outputting. If your template writes the code that your ASP.NET or Java application needs to run, then it will run.
I wonder if you need to have this has a component, do you expect editors to create the control as part of their content? Do you need to translate it?
Normally this type of "content" goes in the template, not in the components.
The important thing to keep in mind is always: what will be written to the application server?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With