Asp.net WebApplication 类继承找不到页面上的控件了
BasePage : System.Web.UI.Page
public partial class Search_Maps_Div_StateMap :BasePage
最后Search_Maps_Div_StateMap这个页面上的控件都是null了。
如这个页面上有个button id=‘test' runat="server"
this.text.Text="test"
最后程序运行到this.text.Text="test"这步是this.text是个null值。
...全文
请发表友善的回复…
发表回复
strife013 2013-01-11
- 打赏
- 举报
base.text?
mengmeng_boy 2013-01-11
- 打赏
- 举报
首先 id='test' 后面的是 text id不对
命名很不规范