asp.net - vb.net If condition in aspx page -
i trying use vb.net if condition in grid view item template in aspx page. tried below code not working expected.
<itemtemplate> <%if ddlstatus.selectedvalue.tolower = "failed" then%> <asp:hyperlink id="hlfilepath" runat="server" text='<%# bind("file_path") navigateurl ='<%# bind("file_path") ></asp:hyperlink> <% else %> <asp:hyperlink id="filepath" runat="server" text='<%# bind("file_path")></asp:hyperlink> <% end if%> </itemtemplate>
Comments
Post a Comment