First, as you probably know, you should not use the #include directive with ASP.NET. The correct solution is to use a user or server control. However, if you want you to add a bunch of HTML and Javascript to the page (i.e. server code), you can use Response.WriteFile:
<%@ Page Language="vb"%> <html> <body> <% Response.WriteFile( "scripts.inc" ) %> </body> </html>
Thomas
source share