You can add a CompilerOptions attribute to the Page directive like this: <%@ Page CompilerOptions="/unsafe" Language="C#" %>
-----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]]On Behalf Of Dominick Baier Sent: Thursday, January 09, 2003 3:39 AM To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] unsafe code in aspx files Hi, i try to put some unsafe code directly in an .aspx file (no code behind) on execution i get the the error that i should compile with the /unsafe switch. but i don't have a (il) compilation. msdn talks about a attribute AllowUnsafeBlocks witch sets the /unsafe switch programmatically. but the link to this information is broken. can someone help me??? thanks in advance dominick You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.