Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Adding a ASP.net page to SharePoint

  Asked By: Ali    Date: Dec 03    Category: Sharepoint    Views: 1324

I'm very new to Microsoft Technologies and Sharepoint. My question
might be really silly. Please oblige.

I wanted to know how do I add a new aspx page to the portal server?

For eg: I was looking into C:\Program Files\Common Files\Microsoft
Shared\web server extensions\60\TEMPLATE\1033\SPS\search.aspx file,
http://<myserver>/search.aspx brings up this search page on the portal
server. I copied this file to search1.aspx and placed it into the same
directory, restarted SharePoint Portal Administrator service, IIS and
the entire box. in all cases, http://<myserver>/search1.aspx gives me
a 404 error. Is there any configuration that needs to be taken care
off to make this work?

My aim is to be able to search the server from another tomcat java web
app and get the search result as an xml and display it in that app.

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Maura Durham     Answered On: Dec 03

In sharepoint  portal servers, you CAN NOT directly add  any custom
ASPX pages the way you described. You can place your custom ASPX
pages only in the " C:\Program Files\Common Files\Microsoft
> Shared\web server  extensions\60\TEMPLATE\LAYOUTS\" folder, and you
can access the page  by
specifying "http://servername/_layouts/pagename.aspx" url.

But, if you are trying to modify the exsisting "search.aspx" page of
the SPS, and want to save the new one with name "search1.aspx", then
you have to do that in Front Page 2003 only. You cannot do that from
file system. So, open the site http://server in Front Page2003, and
open the search.aspx page, make the changes, and save as
search1.aspx.

Note: Sharepoint saves these files in Sql server database.

 
Answer #2    Answered By: Jagat Pandit     Answered On: Dec 03

I haven't tried this in SPS, but in WSS, you must also add  the .aspx to the
<modules> section of the ONET.XML for the site template. I suspect there is
some equivilent .XML config file  for SPS.

 
Answer #3    Answered By: Jerod Carrillo     Answered On: Dec 03

I just looked and there is an ONET.XML file  under ...\60\TEMPLATE\1033\SPS\XML.
If you use Frontpage, the page  will be unghosted and stored in the database. If
you want the page to be globally available, you should add  to the <Modules>
section of the ONET.XML file.

 
Answer #4    Answered By: Hema Pasupuleti     Answered On: Dec 03

If you want to get the search  results in XML you should look at search.asmx
it is a web service  you can call from any other app.

 
Didn't find what you were looking for? Find more on Adding a ASP.net page to SharePoint Or get search suggestion and latest updates.




Tagged: