1、前端代码:
<asp:TextBox ID="txtMan2" runat="server" TabIndex="4" ReadOnly="True"></asp:TextBox>
<img onclick='window.open("../SystemSet/SS_Sys_SelectOne.aspx?ctrlname=txtMan2",null,",toolbar=no,menubar=no,location=center")'
src="../images/person1.gif" align="absMiddle" border="0" alt="Picture" /><label style="color: silver">获取其他页面传来的值</label>
2、后端代码:
string appName = Request.Form["txtMan2"].Trim();
注意:当txtMan2的Enable=“true”时,后端Request.Form[“txtMan2”].Trim()是获取不到传来的值得。