Response.Write("your string here !");

解决方案 »

  1.   

    可以引用使用该控件的Page对象。
    再在类中Page.Response.Write("xxx");
      

  2.   

    在一个类文件中如何引用Page对象啊
      

  3.   


    要想测试类,请这样做:
    1、添加Mian(),//程序入口;
    2、在Main()中写输出语句。
    如:
    using System;
    public class Shuchu
    {
     static void Main()
    {
    Console.WriteLine("你好!");
    }
    }
      

  4.   

    1、WEB方式下是Response.Write("")
    2、Window是Console.WriteLine("");