Put this at the top of your page: <% @Page CompilerOptions="/unsafe" %>
Jim ----- Original Message ----- From: "Dominick Baier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 9:39 AM 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.