The principle is to use response.writefile (), for example: <% @ page language = "c #" autoeventwireup = "false"%>