简体   繁体   中英

Deploy a .aspx page to the Sharepoint 2010

I am new to sharepoint and have a scenario

1) I have a aspx page which displays some data from a xml.

2) The data is populated in a table in the aspx page using a code behind .cs file.

3) I use some dll's which I have made to access the data.

Note:- This things are done on my local pc which does not have a sharepoint server installed.

Now my question is

1) I want a way using which I can use this page as a webpart in a sharepoint site.

2) Can you please guide me a by which the compiled dll of the web application can be used as webpart.

Note:- I have access to put files on the server but cannot develop anything on that

You can use the User Control in SharePoint and add it to your site page..

OR

Use Visual Studio and create an empty SharePoint project (deploy as farm solution).

Then, right click project and add mapped layouts folder.

Rename this folder to whatever name you want to appear (this folder will get created on the servers layout folder in the hive) after you deploy the solution.

Add your aspx page and cs into this folder

Then, double click on package.package (its inside package, above layouts folder, under project)--> Advanced --> Add (existing assembly) and add your dll references here.(this will add the dlls under your sites sharepoint web.config.

After deploy, you can access page using: http://sharepointsite/_layouts/foldername/youraspxfilename.aspx

Let us know about the progress.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM