如题,谢谢。

解决方案 »

  1.   

    我在用户控件中声明 Protected ls1 As selectchinsun.ls1然后用
    Label1.Text = CType(ls1.FindControl("Textbox1"), TextBox).Text提示错误
     selectchinsun是工程名 ls1 是页名
    textbox1是 ls1.aspx中的 textbox控件
    label1是用户控件中的控件  谢谢
      

  2.   

    在用户控件定义个属性。
    public string a
    {
    get{return Label1.Text;}
    set{Label1.Text=value.ToString();}}
    通过页面去读取属性吧。
      

  3.   

    无需声明 Protected ls1 As selectchinsun.ls1然后用
    Label1.Text = CType(Page.FindControl("Textbox1"), TextBox).Text
      

  4.   

    Eddie005(♂) 暴赱 『零零伍』(︶︵︶)  的方法牛