I am developing a publishing portal in SharePoint, I page layout, master page is designed using visual studio and I am deploying the page layout in the content database using wspbuilder.
I have a requirement in which I have to reach the control of the page layout in the back codes and assign / receive values from the control. But, VS Intelligence never shows the controls used in my page layout.
Is there any solution behind this?
Regards, Raghuraman V
I think you have page layout and code-behind in two different projects or At at least two different places, you can use 'real' code-behind pages in SharePoint, which are in addition to the ASPX file so that you do not need to redefine control.
To do this, you can create visual studio projects as "ASP.NET Web Application" for WSP packages, code-backed files make ASPX pages with side-by-side and package To use the WSP Builder to extract the C # file (the code is still compiled in the assembly and deployed with it). This trick works because WSP builder can be configured from the local configuration file inside the Visual Studio project to remove some file types.
Local WSPBuilder.exe.config file here:
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; AppSettings & gt; & Lt; Add key = "Excludefiletypes" value = "cs" /> & Lt; / AppSettings & gt; & Lt; / Configuration & gt;
Comments
Post a Comment