6
votes
Accepted
Dynamically change placeholder at runtime
You can do this using conditional rendering rules.
You would need to add the Form to the page twice, but it will only get rendered once.
Take this example. I have 2 promo renderings and I want them ...
4
votes
How to render a web form Sublayout in MVC layout?
It's definitely not as simple as Vlad makes it out to be.
Officially, Sitecore does not support this. You can mix and match MVC and WebForms in the same project, but only on a page-by-page basis. So ...
3
votes
Accepted
On-premises to PaaS while not using MVC (WebForms implementation)
To answer your question, PaaS is simply another way of saying that an IIS site exists that allows you to run a website. Said differently, using the Sitecore Azure Toolkit to deploy a vanilla instance ...
3
votes
Accepted
sc.variable in web.config file
This should be added inside sitecore node.
e.g.
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<sc.variable name="webDAVPrefix" value="/...
3
votes
Accepted
Sitecore 8 Webforms - Calling RenderControl() on Sublayout returns null
I ended up getting it working, but not using the RenderControl() method. It turns out, that I could just call the GetControl() to get the control for the sublayout afterall, and append that control to ...
3
votes
Sitecore 8 Webforms - Calling RenderControl() on Sublayout returns null
While this is an example of rendering a Controller Rendering, I believe it will help you - the basic principles should be the same. Specifically I think, entering a RenderingContext is what you might ...
3
votes
Could not resolve type name: Utility.HttpContextPerRequestStorage following WFFM install
When you directly set up your IIS site to use your folder where the Visual Studio solution placed it can happen because of the Rebuild. Rebuild means cleaining up your bin folder and only take the ...
3
votes
Upgrading from 7.2 to 8.2
As mentioned here already, use the Sitecore Express Migration tool: https://dev.sitecore.net/Downloads/Express_Migration_Tool/20/Express_Migration_Tool_20_Initial_Release.aspx
Note that this will ...
2
votes
Capturing errors on Web Forms site
This is still possible today, I just tested and confirmed with SC8.2 update 4. You can still modify Global.asax and add Application_Error method.
However, per practically every best practice post out ...
2
votes
Accepted
Components duplicating on front end
This was just because caching had been mistakenly added to the Sublayouts that use dynamic placeholders.
Edit (further explanation):
We have a set of sublayouts/renderings that are used for page ...
2
votes
WFFM MVC and WFFM Webforms in the same instance
I had same question to support if Wffm Mvc and Wffm Web Forms can coexist in a Mvc Application.
Their answer was they can coexist but with limitation :
for one item - use the CSHTML layout, views, ...
2
votes
Accepted
How to make Sitecore.Context.Item.Fields work in a web control in an external project
No one followed up so I will answer what I found. This answer applies to projects outside of the Sitecore instance. The problem was I used the NoReferences versions of the Sitecore libraries. It ...
2
votes
Sitecore 9.0 Dynamic Placeholders in WebForms
No, the OOTB Dynamic Placeholders in Sitecore 9+ does not support Webforms. The implementation is in the Sitecore.Mvc namespace, a.k.a. this is an MVC-only implementation.
If you need to support ...
2
votes
Accepted
Upgrading from Site core 7.2 to 9 - What would be breaking
I've done the same on two different projects.
From my experience it should be fairly straight forward to update your webforms and normal usage of the Sitecore API. There might be minor changes, but ...
1
vote
ASP.NET Webforms with Sitecore 10.2
I can confirm that Sitecore 10.2 works with ASP.Net Webforms renderings.
If you install clean Sitecore 10.2 - you will see that home page is built using layout(/layouts/Sample Layout.aspx) and ...
1
vote
Accepted
webforms editable sc: fields not rendering
The Sitecore controls are looking for the fields on the context item. Since you're using a data source you need to pass that item into each of the controls using the Item property on the control.
&...
1
vote
Modify Output of Image Field During Display
When you want to modify the output of a particular field, your best bet is to override the renderField processor of the field type you're targeting.
<renderField>
...
<processor type="...
1
vote
Accepted
how to tell how many times a user control is used and where is it used?
You can look up the referrers of the specific user control since it's an item in Sitecore (rendering/sublayout) using the Link database.
For a quick check, you can take a look at the Navigate ribbon >...
1
vote
sc.variable in web.config file
I'd recommend adding it to a patch file (which will add it to the main compiled sitecore node). You can place the patch in your App_Config/Include folder in the Website root. (Ex: App_Config/Include/...
1
vote
WFFM web form errors on first submission but succeeds on second try every time; 'Sequence contains more than one matching element'
Your list of values for states is not valid and that is causing you trouble.
Instead of South Carolina and South Dakota you are using same value "South" and that's why you have duplicates. "Carolina" ...
1
vote
Security Roles required for Web Forms For Marketers email save action
For anyone who finds this in future: My problem was the 'Author' role being applied to my user. For whatever reason, this conflicts with WFFM. Removing the role has no noticeable effects on my users ...
1
vote
Glass Mapper generates an Empty Link Text for General Link Field that has a Media Link with an Empty Link Description
In order to render a link with glass you need to do the following:
<%= RenderLink(x => x.ReadMore) %>
Or in MVC:
@Html.Glass().RenderLink(x => x.ReadMore)
1
vote
Accepted
WFFM MVC and WFFM Webforms in the same instance
I can confirm that it works on Sitecore 7.2 as well as Sitecore 8.2 (we have upgraded along the way).
We have a multisite installation with 4 sites running MVC and the last site being Webforms. We're ...
1
vote
Accepted
Capturing errors on Web Forms site
Application_Start was made internal, but you can still use Application_Error (if you want) in a WebForms project.
Just make sure that you global.asax overrides the one from Sitecore (Sitecore.Web....
1
vote
Upgrading from 7.2 to 8.2
Sitecore 8.2 still supports both MVC and Webforms. However, a page should be either completely webform or completely MVC. This should not be a blocker in your case as you will be upgrading existing ...
1
vote
Accepted
Putting web forms sublayouts on MVC layouts during transition (or vice-versa)
Add the UserControlRenderer and GetUserControlRenderer classes to your solution, and patch the mvc.getRenderer pipeline with mvc.usercontrolrenderer.config and you’re good to go.
The source can be ...
1
vote
Clicks in one UpdatePanel affects other UpdatePanels on same page
Update panels have their UpdateMode property set to Always by default, so they'll fire on any post back, even from another update panel. You'll want to set it to Conditional. Conditional will update ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
webforms × 27wffm × 9
mvc × 5
upgrade × 3
experience-editor × 2
placeholders × 2
dynamic-placeholder × 2
azure × 1
sitecore-api × 1
sitecore-forms × 1
presentation × 1
security × 1
glass-mapper × 1
validation × 1
role-management × 1
custom-field × 1
editor-user-permissions × 1
renderfield × 1
ajax × 1
cloud × 1