Ok, I have a site deployed in a shared hosting (medium trust) environment so I can't upload a user control with the corresponding cs file through the interface because the option isn't available. I've seen the documentation that says I can update the web.config instead, which is fine. One thing I haven't been able to find is where I need to upload the code behind file. I'm assuming when you upload the ascx and cs files through the interface SiteFinity complies it on the fly because there aren't any cs files in the UserControls directory on the server. So my question is this, should I just upload the ascx and cs files to the UserControls directory?
I want to replace a user control that is already there. Currently the control directive on the deployed site is:
<%@ control language="C#" inherits="UserControls_ContactForm, App_Web_gatpvrsu" %>
The one I want to deploy has this:
<%@ Control Language="C#" CodeFile="ContactForm.ascx.cs" Inherits="UserControls_ContactForm" %>
Can I just drop both files in the UserControls directory or is there something else I need to do?