Open Visual Studio 2008 and select Web Application Project as shown below,

Name the project as “FirstWebProject”.
Step 2: Create new Web Page.
Delete the Default.aspx and add a new Web Page and name it as “FirstCustomePage”.
Step 3: Design the page as required and run the application
Here I have added an asp button and a textbox where in while clicking on the button the current date time is been displayed in the text box.
Step 4: Add FirstWebProject.dll to SharePoint Bin Folder
Now go to the file path where the Web Application is created. Here in my case it is “C:\Malathy\Trials\CustomeAspxPagesInSP\FirstWebProject” and copy the DLL file from web application’s BIN folder to Share point site’s BIN folder. In my case Share point site’s BIN location is “C:\Inetpub\wwwroot\wss\VirtualDirectories\80”
Step 5: Add .aspx file to Share Point Storage
Create a new folder “CustomePage” at the same level where SharePoint site’s BIN directory resides and add the “FirstCustomePage.aspx” page into this folder.
Step 6: Include SafeControl tag in web.config of Share point site.
Open Web.Config file of Share Point and include safe control tag as shown below to it.
Change the assembly and name space as used in Web Application.
Step 7: include
Now set the path of wss_mediumtrust.config in trustLevel as follows:
Now change the
Step 8: View in Share Point site
Brose to the page as
http://ServerName:PortNumber/CustomePage/FirstCustomePage.aspx
References:
http://blogs.msdn.com/cjohnson/archive/2006/09/05/application-development-on-moss-2007-amp-wss-v3.aspx
http://sharenotes.wordpress.com/2008/02/21/add-custom-aspx-pages-or-asp-net-pages-in-sharepoint/
No comments:
Post a Comment