如题!!!!!!!!!

解决方案 »

  1.   

    web form use session cookies
    winform use static value
    ex:
    public class Form1: ..
    {
      public static string str1;
    }
    public class Form2:
    {
     void test()

       string =Form1.str1;
    }
    }
      

  2.   

    FORM1
    public string GetID
    {
    get
    {
    return Txt_ID.Text;
    }
    }
    FORM2
    FORM2 FM = NEW FORM2();
    STRING = FM。GETID
      

  3.   

    也可以用ini文件,不过有点兜圈子的感觉,用楼上 的比较方便