Answered by:
Building a simple Asp .NET page for WSS 3.0

Question
-
Hi,
using VSTO 2008 and SPVisualDev, I need to begin to create a simple Asp .NET page to integrate with WSS 3.0. I'm a begineer and so I need your help, please.
Many thanks
Thursday, June 23, 2011 2:18 PM
Answers
-
Hi pscorca,
You can build a custom application page for wss 3.0 (with WSPBuilder) following this article.
http://aarohblah.blogspot.com/2009/12/create-customized-application-page-in.html
There are some demonstrations of the features for the SPVisualDev. And you can create a simple page for wss 3.0 as follow steps:
1. Create an artifact project (Project default).
2. Create a new folder (be used to put your aspx page) under 12->LAYOUTS.
3. Create a new Application page in that new folder (via Add New Item - >SPVisualDev -> UI), and the aspx page contain the basic elements, you can modify it (i.e. add the “Hello World” in the tag PlaceHolderMain).
4. Right-click and deploy this project (via SPVisualDev ->Build WSP and deploy) to your site.
5. Access the aspx page in the url http://yourServer/yourSite/_layouts/yourNewFolder/yourAspxPage.aspx
Thanks,
Daniel
Regards, Daniel, Microsoft Contingent Staff- Marked as answer by Porter Wang Monday, July 4, 2011 3:20 AM
Thursday, June 30, 2011 7:17 AM -
ASPX page need to be deployed into 12 hive folder. Its means C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\AmitKumar\AmitKumar.aspx. The sample aspx page code is given below, the dll of the page deployed in GAC/BIN folder:
<%@ Assembly Name="Amit.Kumar.TS, Version=3.0.0.0, Culture=neutral, PublicKeyToken=97b53f0c0c6466g" %> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AmitKumar.aspx.cs" Inherits="Amit.Kumar.TS.Web.UI.AmitKumar" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Amit Kumar's Blog</title> <script type="text/javascript" language="javascript"> <!-- function window_onload() { window.resizeTo(600, 430); } function closeThis() { self.close(); } //--> </script> </head> <body onload="return window_onload();"> <form id="form1" runat="server"> <p style="text-align:center"><b>Software Disclaimer</b></p> <table border="0" width="80%" align="center"> <tbody> <tr> <td style="font-style:italic; color:#000000"> Amit Kumar(http://amitkumarmca04.blogspot.com/) </td> </tr> </tbody> </table> </form> <form id="frm" method="post" action=""> <table border="0" width="30%" align="center"> <tbody> <tr> <td><input type="button" value="I Accept" name="sAction" onclick="closeThis();"/></td> <td><input onclick="Javascript:window.close();" type="button" value="I do not Accept" name="sAction"/></td> </tr> </tbody> </table> </form> <br /><br /> <asp:Label ID="lblResult" ForeColor="red" Font-Bold="true" runat="server" /> </body> </html>
Thanks, Amit Kumar, LinkedIn Profile ** My Blog- Marked as answer by Porter Wang Monday, July 4, 2011 3:20 AM
Friday, July 1, 2011 4:48 AM
All replies
-
Hi pscorca,
You can build a custom application page for wss 3.0 (with WSPBuilder) following this article.
http://aarohblah.blogspot.com/2009/12/create-customized-application-page-in.html
There are some demonstrations of the features for the SPVisualDev. And you can create a simple page for wss 3.0 as follow steps:
1. Create an artifact project (Project default).
2. Create a new folder (be used to put your aspx page) under 12->LAYOUTS.
3. Create a new Application page in that new folder (via Add New Item - >SPVisualDev -> UI), and the aspx page contain the basic elements, you can modify it (i.e. add the “Hello World” in the tag PlaceHolderMain).
4. Right-click and deploy this project (via SPVisualDev ->Build WSP and deploy) to your site.
5. Access the aspx page in the url http://yourServer/yourSite/_layouts/yourNewFolder/yourAspxPage.aspx
Thanks,
Daniel
Regards, Daniel, Microsoft Contingent Staff- Marked as answer by Porter Wang Monday, July 4, 2011 3:20 AM
Thursday, June 30, 2011 7:17 AM -
ASPX page need to be deployed into 12 hive folder. Its means C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\AmitKumar\AmitKumar.aspx. The sample aspx page code is given below, the dll of the page deployed in GAC/BIN folder:
<%@ Assembly Name="Amit.Kumar.TS, Version=3.0.0.0, Culture=neutral, PublicKeyToken=97b53f0c0c6466g" %> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AmitKumar.aspx.cs" Inherits="Amit.Kumar.TS.Web.UI.AmitKumar" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Amit Kumar's Blog</title> <script type="text/javascript" language="javascript"> <!-- function window_onload() { window.resizeTo(600, 430); } function closeThis() { self.close(); } //--> </script> </head> <body onload="return window_onload();"> <form id="form1" runat="server"> <p style="text-align:center"><b>Software Disclaimer</b></p> <table border="0" width="80%" align="center"> <tbody> <tr> <td style="font-style:italic; color:#000000"> Amit Kumar(http://amitkumarmca04.blogspot.com/) </td> </tr> </tbody> </table> </form> <form id="frm" method="post" action=""> <table border="0" width="30%" align="center"> <tbody> <tr> <td><input type="button" value="I Accept" name="sAction" onclick="closeThis();"/></td> <td><input onclick="Javascript:window.close();" type="button" value="I do not Accept" name="sAction"/></td> </tr> </tbody> </table> </form> <br /><br /> <asp:Label ID="lblResult" ForeColor="red" Font-Bold="true" runat="server" /> </body> </html>
Thanks, Amit Kumar, LinkedIn Profile ** My Blog- Marked as answer by Porter Wang Monday, July 4, 2011 3:20 AM
Friday, July 1, 2011 4:48 AM