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.
在我的 Page_Load 中,我将文本设置为等于一个值,例如 txtNote.text="note text ex"
如果我将实际表单上的文本更改为其他内容,然后尝试将我的新值写入 db ... textNote.text 仍然是“note text ex”它在 Page_Load 中设置的内容...不是什么我把它改成了表格....这个可以改吗?
谢谢,
像这样将您的任务分配到 IsPostBack 控件中:
if (!IsPostBack) { txtNote.Text="note text ex"; }