且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在输入标签中绑定会话数据

更新时间:2023-12-04 18:24:05

附加Id ="MyInput"和runat ="server"

并在后面的代码中
MyInput.Value = session ["MySession"].ToString();
attach Id="MyInput" and runat="server"

and in code behind
MyInput.Value=session["MySession"].ToString();



您可以使用Hiddenfield控件代替输入html控件.
Hi
You can use Hiddenfield control instead of input html control.