Using an aspx page with SPS site
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Using an aspx page with SPS site

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server
Author Message
mj
Guest





Posted: Tue Jan 11, 2005 2:22 pm    Post subject: Using an aspx page with SPS site Reply with quote

Hi,
I have created an aspx file, and put it into the ..\template\layouts\1033\
directory, but when I access it using http://xxx/_layouts/xxx.aspx, IE
report that there is no such file. I have also put it into the SPS site
using Front Page, but when I browse it, IE report that there are script that
have not been supported, any solution for this?

code as below(xxx.aspx):
<%@ Page language="C#" EnableViewStateMac="false" %>
<%@ Register Tagprefix="SharePoint"
Namespace="Microsoft.SharePoint.WebControls"
Assembly="Microsoft.SharePoint, Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>

<script runat="server">
void Page_Load()
{
SPWeb web = SPControl.GetContextWeb(Context);
string strPath = Request.QueryString["FileName"];
SPFile file=web.GetFile(strPath);

if (file.Exists)
{
file.Item.ModerationInformation.Status =
SPModerationStatusType.Pending;
file.Item.Update();
}
else
{
Response.Write("无法将文件提交给经理审批!");
}

}
</script>
Back to top
Sunil
Guest





Posted: Tue Jan 11, 2005 3:27 pm    Post subject: Re: Using an aspx page with SPS site Reply with quote

Nothing like that it should work, check your web.config settings

See this links too
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tsptWebConfigAppCoexist_SV01134837.asp


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/ODC_WSSArchitecture.asp

If it is any other application then you need to create a virtual
directory and add it in unmanaged path
Back to top
Marco
Guest





Posted: Tue Jan 11, 2005 4:59 pm    Post subject: Re: Using an aspx page with SPS site Reply with quote

I would advise not to follow the settings in the first link as this advises
to set the trust level of the virual server to full.
This is a bad practice as this raises all kinds of security issues.

Marco

"Sunil" wrote:

Quote:
Nothing like that it should work, check your web.config settings

See this links too
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tsptWebConfigAppCoexist_SV01134837.asp


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/ODC_WSSArchitecture.asp

If it is any other application then you need to create a virtual
directory and add it in unmanaged path

Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB