I have a ASP.NET user control which hosts a 'HtmlImage'. The src attribute is successfully set at run-time, but adding the rendered control to another container causes a loss of the src attribute.
The rendered control is stored in Session (I know this is not ideal). Then a redirect is done to another page which uses the control in Session.
Perhaps it's because the url is not encoded?
Code:
<img id="ctlImage" runat="server" style="border-style: none;" />
ctlImage.Src = String.Format("..\image.aspx?{0}", "...")