The page contains server script, which is not supported on t
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
The page contains server script, which is not supported on t

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
ALI-R
Guest





Posted: Thu Jan 20, 2005 12:42 am    Post subject: The page contains server script, which is not supported on t Reply with quote

Hi All,

I've created a web part page which contains ASP.NET server script ,I get
this error while I want to execute that page within the portal.In IIS my
sharepoint virtual direcoty has the "Execute permission" set to script only
and I've also checked the "Script source access" property,but I still get
this error.

Anyone could help me.I appreciate it.

Ray
Back to top
Kit Kai
Guest





Posted: Thu Jan 20, 2005 6:49 am    Post subject: RE: The page contains server script, which is not supported Reply with quote

Does your page contains any <% %> tags? Webpartpages does not support
serverside scripts because of security issues...

"ALI-R" wrote:

Quote:
Hi All,

I've created a web part page which contains ASP.NET server script ,I get
this error while I want to execute that page within the portal.In IIS my
sharepoint virtual direcoty has the "Execute permission" set to script only
and I've also checked the "Script source access" property,but I still get
this error.

Anyone could help me.I appreciate it.

Ray


Back to top
ALI-R
Guest





Posted: Fri Jan 21, 2005 12:58 am    Post subject: Re: The page contains server script, which is not supported Reply with quote

Thanks for your reply.I created the page in layout folder and it's working
fine ,just for other people reference :

How To Create a Webpart Page with ASP.NET Server-Side codes in SharePoint
Portal Server.

I have one question.. I am trying to add custom ASPX code sharepoint pages.I
came to know that it is not possible to run custom aspx code in
SPS(server-side script is not possible in the native pages),Why?
Because the security model in SharePoint blocks scripts and code behinds
from
executing on pages.


Solutions:
1)If you want to add custom script, develop your
application in _layouts (which is shared ) directory.

OR

2)You have to set up an excluded path to execute a ASP.NET
application on a portal virtual server.There is an explanation on how to do
this and why in the Help files at this address:
http://YourPortal/_vti_bin/help/1033/sps/html/stsf05.htm

Note:Creating pages underneath the /_layouts directory is often the best
option for custom ASPX apps on top of SharePoint.This lets your page be
accessible from any web. For example, if you build mypage.aspx in _Layouts,
it is accessible from the following URLs:
http:// YourPortal /_layouts/myapp/mypage.aspx


How to make my page look like a normal weppart page within SPS
using frontpage to make the page look like it has
a theme and putting the aspx page inside an iframe on the sts site.



HTH

Reza Alirezaei
"Kit Kai" <kitkai@community.nospam> wrote in message
news:0EED461F-AF6F-4276-9271-0EEEF6389267@microsoft.com...
Quote:
Does your page contains any <% %> tags? Webpartpages does not support
serverside scripts because of security issues...

"ALI-R" wrote:

Hi All,

I've created a web part page which contains ASP.NET server script ,I get
this error while I want to execute that page within the portal.In IIS my
sharepoint virtual direcoty has the "Execute permission" set to script
only
and I've also checked the "Script source access" property,but I still
get
this error.

Anyone could help me.I appreciate it.

Ray


Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development 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