Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Including server script in aspx page

  Asked By: Cesar Hanson         Date: Jun 10, 2004      Category: Sharepoint      Views: 403

Anyone out there who can help me on this, I would be really thankfull…,

While trying to modify the .aspx files (NewForm, DispForm, AllItems, etc.) for the lists. I found a code snippet that says that I can add code as follows

<Script runat=”server”>

void Page_Load()

{

SPWeb web = SPControl.GetContextWeb(Context);

….





}

</Script>

But when I tried doing this, I got the following error,

"The page contains server script, which is not supported on this server."

Anyone knows how to get around this….


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:            

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Including server script in aspx page Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].