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

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -