logic within aspx page?
-
with previous languages it would be easy to, for example, display a picture if a certain parameter was true, but I am having a hard time doing that in asp.net Say I have a list of articles and one of them is the featured article. Within the admin side I would like to have a picture that is displayed by one of the articles within a list, showing that it is the featured. This is what I have within a datagrid custom template and it doesn't work: if Container.DataItem("featured_article_fl") = "Y" then ...imagebutton start ImageUrl="/Pictures/Icons/featuredArticle.jpg" ToolTip="Current Featured Article" runat="server" ID="Imagebutton5"> imagebutton end... end if Thanks for the help btw asp tags are only missing because they wouldn't display in post
-
with previous languages it would be easy to, for example, display a picture if a certain parameter was true, but I am having a hard time doing that in asp.net Say I have a list of articles and one of them is the featured article. Within the admin side I would like to have a picture that is displayed by one of the articles within a list, showing that it is the featured. This is what I have within a datagrid custom template and it doesn't work: if Container.DataItem("featured_article_fl") = "Y" then ...imagebutton start ImageUrl="/Pictures/Icons/featuredArticle.jpg" ToolTip="Current Featured Article" runat="server" ID="Imagebutton5"> imagebutton end... end if Thanks for the help btw asp tags are only missing because they wouldn't display in post
kowplunk wrote: btw asp tags are only missing because they wouldn't display in post You mean like this: <ImageUrl="/Pictures/Icons/featuredArticle.jpg" ToolTip="Current Featured Article" runat="server" ID="Imagebutton5"> < == < > == >
Do you want to know more? Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!