Skip to main content
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 ...
Richard Seal's user avatar
  • 20.5k
5 votes
Accepted

Sitecore Forms 9.2 compatibility with Webforms

No, Sitecore MVC forms are not compatible with an ASP.NET site build using Sitecore. There are a couple of reasons for this: Technology preference: Sitecore itself has transitioned towards using MVC ...
Vlad Iobagiu's user avatar
  • 18.6k
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 ...
Mark Cassidy's user avatar
  • 25.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 ...
Pete Navarra's user avatar
  • 14.7k
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="/...
josedbaez's user avatar
  • 1,792
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 ...
Søren Engel's user avatar
  • 1,523
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 ...
Mark Cassidy's user avatar
  • 25.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 ...
Tamás Tárnok's 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 ...
Gatogordo's user avatar
  • 20.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 ...
David Walker's 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 ...
David Masters's 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, ...
Vlad Iobagiu's user avatar
  • 18.6k
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 ...
Brett Drake's 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 ...
jammykam's user avatar
  • 13.8k
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 ...
morten.engel's user avatar
2 votes
Accepted

Cascaded/global sublayout components in webforms?

Here is an article explaining how to do it https://laubplusco.net/inheriting-renderings-sitecore/ I am briefing the process here, you can find more details with code in articles itself. Add a ...
Vikrant Punwatkar's user avatar
1 vote

How can I get the datasource of a personalized sublayout (webforms)?

I found an example that is being used to get Personalised datasource from a view rendering. I hope the same logic you can use within your methods. Here is the sample conde snippet given below. ...
Sumit Bhatia's user avatar
  • 5,125
1 vote
Accepted

How can I get the datasource of a personalized sublayout (webforms)?

It's hard to trip down memory lane, as it's been a while. You can try out following code to get the personalized datasource. public static List<Item> GetPersonalizationDataSourceItems(this Item ...
Sumit Helaiya's user avatar
1 vote

How can I get the datasource of a personalized sublayout (webforms)?

Webforms, it's been a while. var renderingReference = Sitecore.Context.Page.GetRenderingReference(this.Parent); var datasourcePath = renderingReference.Settings.DataSource; As I recall, this is how ...
Mark Cassidy's user avatar
  • 25.3k
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 ...
Anton's user avatar
  • 3,831
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. &...
Lyle Jordan's 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="...
jrap's user avatar
  • 4,951
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 >...
Elena Mosoff's 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/...
Dylan Young's user avatar
  • 4,314
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" ...
Peter Procházka's 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 ...
Mike's 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)
Dylan Young's user avatar
  • 4,314
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 ...
morten.engel's 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....
Gatogordo's user avatar
  • 20.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 ...
Hishaam Namooya's user avatar

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