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

Popular posts from this blog

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -