<input id="tbxPopupCode" type="text" runat="server" value="<%= Request.QueryString["code"].Replace("-"," ") %>" />
I get an error message:
Server tags cannot contain <% ...%> constructs
I need to replace the value from Request.QueryString["code"]and bind it to the text value.
Request.QueryString["code"]
Actually, the exception message is pretty clear: you cannot have runat="server"and <%= %>.
runat="server"
<%= %>
There are some labor costs for this (for example <%# %>), but why not just set a value for the code like this.tbxPopupCode.Value = ...?
<%# %>
this.tbxPopupCode.Value = ...
, , , HTML- PlaceHolder.