Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. logic within aspx page?

logic within aspx page?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadmindockerhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kowplunk
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • K kowplunk

      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

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      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!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups