Where are SharePoint WebPartPages located? - sharepoint-2010

I'm very new to SharePoint and I am having trouble working out where the various templates and web part pages can be located in SharePoint Designer.
I've found the home page and the master page of the site I'm working on and there are a couple of references to other blocks of code that I can't trace.
For example:
<WebPartPages:WebPartZone runat="server" Title="<%$Resources:cms,WebPartZoneTitle_TopRightColumn%>" ID="TopRightColumn"><ZoneTemplate></ZoneTemplate></WebPartPages:WebPartZone>
Where would I find the file this code references?
There is also code like this
<%# Register TagPrefix="companyName" TagName="CompanyNameFooter" Src="~/_controltemplates/CompanyNameFooter.ascx" %>
This apparently references a file in the directory: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\CONTROLTEMPLATES
How do I access this file from within SharePoint?

You can only access from SharePoint Application, Goto Site contents >> Pages u can see the pages which are available

Related

Adding a folder with files to application - Visual Basic 2010

In my current project I have a folder with several files that the application needs to function properly. The folder is in the bin/debug folder and with the line Application.StartupPath I can easily access the files. It couldn't be easier.
However, when I publish the application the files don't seem to be included in the project, at least not at the StartupPath.
So my question is: how am I supposed to add this folder to my published application?
First, you'll need to include those files in your project. Then click each file in the Solution Explorer and in the Properties Windows change the value for "Copy to Output Directory" to "Copy Always".

Asp.net mcv 4 web application host in iis 7 on windwos 7

I'm new in asp.net world. I made it by visual studio project template c#->web->visual studio 2013-> ASP.NET MVC 4 Web Application. I managed to make my website and launch it from visual studio 2013. My development directory content:-
App_Data (directory)
App_Start (directory)
bin (directory)
Content (directory)
Controllers (directory)
Filters (directory)
Models (directory)
obj (directory)
Properties (directory)
Scripts (directory)
Views (directory)
AspInfoTaulu.csproj
AspInfoTaulu.csproj.user
favicon.ico
Global.asax
Global.asax.cs
packages.config
Web.config
Web.Debug.config
Web.Release.config
I publish the website from visual studio publish. Publish directory contains:-
bin (directory)
Content (directory)
Scripts (directory)
Views (directory)
favicon.ico
Global.asax
packages.config
Web.config
I made a directory at C:\inetpub\wwwroot\webdir and copy the contain's of publish directory. Add new website in iis manager. By following several instructions. Could not managed to host it in iis. I got various error. Could someone inform me how to host asp.net mvc 4 website in iis 7? Error screenshot:-
Thanks in advance!
Make sure, that your Global.asax (existing in application root) is correctly located via the physical path:
open your iis-manager
Expand sites on the right pane
right click on your site
choose 'manage website' > 'advanced settings'
on attribute 'phyical path' choose the destination of the Global.asax located in your application.
Open c:/ drive.
In this drive open inetpub folder.
In this inetpub open wwwroot folder.
Copy that folder, which is store your publish application.
eg.**I publish my application in **d:/myapp folder, so copy that folder.
Copy myapp folder and paste into wwwroot folder.
When you past folder in wwwroot folder then open one dialog box, in this dialog box you click on continue button.
Open IIS manager.
Expand Sites menu.
In this sites menu expand Default Web Site.
10.Right click on your hosting application(your application) name.
11.Expand Manage Application*8 menu then click to **browse*.

How do I publish specific files not in project in VS 2010?

Is there a way I can publish *.ascx files without adding them to my project?
I am trying to make my user controls in Visual Studio 2010 reusable. I have a project containing my user controls called ControlsLibrary solution directory. I copy the ascx files to the web directory upon building the project with build events.
I use the command copy "$(SolutionDir)ControlLibrary\*.ascx" "$(ProjectDir)controls\"
This copies the *.ascx files from G:/SolutionDirectory/ControlsLibrary to C:/Inetpub/wwwroot/WebProject/controls
Now when I publish WebProject, the publish does not copy the *.ascx files from C:/Inetpub/wwwroot/WebProject/controls to my website. This is because they are not added to my project.
Is there a way I can publish *.ascx files without adding them to my project?
I know there is a way to publish all files by selecting the option "All files in this project." That includes more files than I want.
Have you considered using the Virtual Path Provider approach? Here's a good article on it: Load Web Forms and User Controls from Embedded Resources.

How to use the XmlFormView component displayed Info Path *.xsn file within VisualWebPart

I have followed the instructions described in the Publish a InfoPath 2010 form to Form Library in SharePoint 2010 tutorial and successfully published the InfoPath 2010 form in Form Library in SharePoint 2010.
I want to develop a custom VisualWebPart that uses the XmlFormView component displayed Info Path *.xsn file. I have configured my XmlFormView in the following manner:
<cc1:XmlFormView … XsnLocation="/FormServerTemplates/*.xsn">
</cc1:XmlFormView>
When I embed my custom VisualWebPart onto any page, I encounter the following error:
w3wp.exe (0x1454)
0x1594
InfoPath Forms Services
Runtime
e568
Verbose
Unexpected exception while getting file at:
http://SharePointUrl/FormServerTemplates/*.xsn.
Exception of type:SPException. Message:Cannot open file "FormServerTemplates/*.xsn".be9cb443-292a-4c80-9188-06a01e6393c5
*.xsn will not work, you will have to specify specific infopath form teamplate.
Found a solution in the “Publishing and Deploying Using the InfoPath Wizard -> Publishing Form Templates as a Separate Content Type” article of the “SharePoint 2010 as a Development Platform” book:
In the Publishing wizard you will be asked to specify a location and file name for your form template. You can specify any document library within the site to which your content type will be
published. However, the best location for your form templates is a library called Form Templates within
your site. This library is available in every site and can be accessed by the path /FormServerTemplates.
Specify a location and file name for the form template:
http://SharePointUrl/FormServerTemplates/*.xsn
<cc1:XmlFormView … XsnLocation="/FormServerTemplates/*.xsn">
</cc1:XmlFormView>

ASP.NET Server Control - How to add AssemblyInfo file

I've noticed on a few tutorials online that when a new ASP.NET Server Control is added, it automatically includes Properties folder (containing AssemblyInfo.cs) and a References folder.
This works fine for me when creating a C# Server Control, but in VB.NET I just get a template .vb file and a Project file.
Why is this and how can I get an AssemblyInfo.vb file?
AssemblyInfo.vb file is created for every project. By default it is not displayed in the Solution/Project Explorer.
To view this file and others in Visual Studio click Project >> Show All Files menu items.