c# - Picking a server control depending on environment -
I have an ASPX page that references a server control from an assembly and stays in Sharepoint (in Knowledge / Sharepoint Experience is not necessary) to answer this question, I am just referring to you). Implementation looks like this:
& lt;% @ Register TagPrefix = "wc" assembly = "test.Controls" namespace = "test.config"% & gt; & Lt; Wc: WYSIWYG runat = "server" & gt; & Lt; / Wc: WYSIWYG & gt;
I can not change the contents of the .aspx page which currently resides in SharePoint and I have to take the same code and have to run it out of SharePoint, but still one On asp.net environment It's calm and nuts in Sametime, I know.
Challenge
When it is running in ASPX page SharePoint, I want to use the WYSIWYG control of the SharePoint WYSIWYG Editor control when the same ASPX page uses SharePoint Running outside, but still in an ASP.NET environment, I need to use a separate server control that is not dependent on / from Sharepoint. How can I change this code to back it up? Is this also possible? Does my question also make sense?
Thanks
You create a cover controller (which I think wc Is: WYSIWYG). In this you check whether you are running inside a SharePoint environment and not using load control of appropriate control for your environment. This is a way to solve it.
Comments
Post a Comment