Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Including server script in aspx page

  Asked By: Cesar    Date: Jun 10    Category: Sharepoint    Views: 1830

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);




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….



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.