
aspx后台页面怎么修改前台控件的属性值
1个回答
展开全部
首先需要增加 runat="server"。
然后,可以在 asp.net 代码中写
this.Text1.Attributes["readonly"] = "readonly";
this.Text1.Attributes.Remove("readonly");
然后,可以在 asp.net 代码中写
this.Text1.Attributes["readonly"] = "readonly";
this.Text1.Attributes.Remove("readonly");
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询