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. link button

link button

Scheduled Pinned Locked Moved ASP.NET
databasehelp
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.
  • S Offline
    S Offline
    seemamltn
    wrote on last edited by
    #1

    My following code is not working I have a gridview that contains a linkButton in a template field. I want to set the visibility of the linkbutton based on a int field in a database. Selecting the proper field in editbindings gives this in the code Remove All
    (where UserCnt is int field in my database) This generates the following error. 'int' does not contain a definition for 'parse'

    seema

    I 1 Reply Last reply
    0
    • S seemamltn

      My following code is not working I have a gridview that contains a linkButton in a template field. I want to set the visibility of the linkbutton based on a int field in a database. Selecting the proper field in editbindings gives this in the code Remove All
      (where UserCnt is int field in my database) This generates the following error. 'int' does not contain a definition for 'parse'

      seema

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      Visible='<%#(Int.Tryparse(Eval("UserCnt")))%>' Int.TryParse returns bool

      Best Regard
      Pathan

      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