2022 Developer Survey is open! Take survey.
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 ...
user avatar
  • 18.8k
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 ...
user avatar
  • 24.3k
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 ...
user avatar
  • 14.3k
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="/...
user avatar
  • 1,752
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 ...
user avatar
  • 1,513
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 ...
user avatar
  • 24.3k
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 ...
user avatar
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 ...
user avatar
  • 19.1k
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 ...
user avatar
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 ...
user avatar
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, ...
user avatar
  • 17.7k
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 ...
user avatar
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 ...
user avatar
  • 13.6k
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 ...
user avatar
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 ...
user avatar
  • 3,386
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. &...
user avatar
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="...
user avatar
  • 4,691
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 >...
user avatar
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/...
user avatar
  • 4,259
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" ...
user avatar
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 ...
user avatar
  • 155
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)
user avatar
  • 4,259
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 ...
user avatar
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....
user avatar
  • 19.1k
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 ...
user avatar
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 ...
user avatar
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 ...
user avatar
  • 1,458

Only top scored, non community-wiki answers of a minimum length are eligible