在Page_Load事件里面
void Page_Load()
{
//咋写?
}
myCon.myValue="dsfdsfsdf";
然后再打印出来Response.Write(myCon.myValue);
多谢...

解决方案 »

  1.   

    在UserControl添加属性就可以了。
    然后在UserControl所调用的页面修改属性就可以了
      

  2.   

    http://www.100down.com/download/infoview/Article_1239.html
    到csdn上搜索一下,很多相关的文章
      

  3.   

    Public Property UserId() As String
            Get
                Return TextBox1.Text
            End Get
            Set(ByVal Value As String)
                TextBox1.Text = Value
            End Set
        End Property
      

  4.   

    <uc1:webusercontrol id="WebUserControl1" runat="server" userid="llloooklkl,klkllk"></uc1:webusercontrol>
    這是調用﹗