C
Cliff
Hi,
i would like to get the value of variable 'em', defined in code-behind, into
a textbox.
I tried two ways but withoit succes (no error).
The first textbox is empty, the second gets:<%=em %>
aspx file:
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server" Text='<%# eval(em)
%>'></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server" Text="<%=em
%>"></asp:TextBox>
</form>
code-behind:
Friend em As String
em = "ok"
Thanks
Cliff
i would like to get the value of variable 'em', defined in code-behind, into
a textbox.
I tried two ways but withoit succes (no error).
The first textbox is empty, the second gets:<%=em %>
aspx file:
<form id="form1" runat="server">
<asp:TextBox ID="TextBox1" runat="server" Text='<%# eval(em)
%>'></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server" Text="<%=em
%>"></asp:TextBox>
</form>
code-behind:
Friend em As String
em = "ok"
Thanks
Cliff