Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有asp:textbox一个id=login
asp:textbox
id=login
我正在尝试显示从发布请求中检索到的用户 ID:
protected void Page_Load(object sender, System.EventArgs e) { login.Text = Request["user"]; }
在调试期间,我可以看到它login.Text填充了用户 ID,但文本从未显示在页面上。
login.Text
任何帮助将不胜感激!
尝试:
protected void Page_Load(object sender, System.EventArgs e) { if (!this.IsPostBack) { login.Text = Request["user"]; } }