runat = " html, Asp.Net HtmlControl - HtmlInputImage. , :
<%= testButton.GetType() %>
, , Src, , , inline aspx - :
<%
testButton.Src = "/content/logo.png";
%>
<input id="testButton" type="image" runat="server" src="" onserverclick="RedirectTest" />
You need to set the Src property BEFORE the actual input, which is a little unintuitive, the reason is that the code is executed during rendering, so if the Src-property parameter is after the control, it's too late.
source
share