Thanks for that information. I've taken a look and unfortunately I don't think I'm going to be able to use the same technique. Each of my widgets are quite compliacated with numerous fields.
I'm not sure why the number of fields makes a difference, it was the number of forms on the page that was the issue for me. If you've just got one form you can put form tags in the widget.
If you find a solution using RenderTemplate please post it because I would rather use it than the other macro.
Thanks but I can't see it working for my project which is too complex to explain.
To work around the limitation I've implemented the functionality I needed using HTML controls rather than asp.net controls as they don't need to be in a runat="server" form.
RenderTemplate 'DropDownList' must be placed inside a form tag with runat=server
Within my master template I'm trying to render a template that contains an ASP.Net dropdownlist and I'm getting the following error:
'DropDownList' must be placed inside a form tag with runat=server
My master template already contains a runat server form that encloses the templat I'm trying to render so I'm wondering what to do.
Regards,
Matt
I think this is the same issue I had here: http://our.umbraco.org/projects/backoffice-extensions/ucomponents/questionssuggestions/29948-Widget-using-RenderTemplate-does-not-display-TextBox-in-a-User-Control
You need to use this other macro to render the form.
Thanks
Tony
Hi Tony,
Thanks for that information.
I've taken a look and unfortunately I don't think I'm going to be able to use the same technique.
Each of my widgets are quite compliacated with numerous fields.
Regards, Matt
Hi Matt,
I'm not sure why the number of fields makes a difference, it was the number of forms on the page that was the issue for me.
If you've just got one form you can put form tags in the widget.
If you find a solution using RenderTemplate please post it because I would rather use it than the other macro.
Thanks
Tony
Maybe I mis-understood the solution but it seemed to involve rendering macros though a Rich Text Box.
My scenario is a littl more complex, I need to render tiles on a page.
Page 1
-Tiles Type A
- Tile type 1
- Tile type 2
- Tile type 1
- Tile type 3
Page 2
-Tiles Type B
- Tile type 7
- Tile type 6
- Tile type 1
- Tile type 3
Each Tile is a document type with a bunch of fields. Only certain types of tile are allowed under certain types of page, restricted by document type.
I can't see how the mentioned solution would be applied.
Cheers, Matt
The Sidebar Widgets macro just lets you have multiple widget forms on one page which RenderTemplate doesn't allow.
This will solve your initial question. It's the same issue that I had.
You can then customise this code to get restrictions on the different widgets and pages.
Thanks
Tony
Hi Tony,
Thanks but I can't see it working for my project which is too complex to explain.
To work around the limitation I've implemented the functionality I needed using HTML controls rather than asp.net controls as they don't need to be in a runat="server" form.
Regards, Matt
is working on a reply...