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.
私のaspxファイルにこれらの両方があるとします:
<asp:TextBox ID="tbASP" runat="server" Width="400px" /> <input id="tbHTML">
コードビハインドからのコンテンツをコピーする方法はtbHTML?tbASP
tbHTML
tbASP
ur Input 要素の ID がページ内で一意であることを確認してください。このように試すことができます。
tbASP.Text=Page.Request["tbHTML"].ToString();
逆に編集
<input id="id" value=<%= TextBox1.Text %> />