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. Other Discussions
  3. The Weird and The Wonderful
  4. Int? What's "int"?

Int? What's "int"?

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharprubyhtmlasp-netwpf
6 Posts 5 Posters 2 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.
  • B Offline
    B Offline
    Brady Kelly
    wrote on last edited by
    #1

    There seems to be a problem with the ASP.NET data repeating controls, Repeater and DataList. If a new DataSource is empty, the control appears to keep the rows of the old DataSource. While looking for a solution I stumbled upon this[^] gem: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load repeater.DataBind() Dim record As String = repeater.Items.Count.ToString If record = 0 Then repeater.Visible = False Else repeater.Visible = True End If End Sub

    P L S 4 Replies Last reply
    0
    • B Brady Kelly

      There seems to be a problem with the ASP.NET data repeating controls, Repeater and DataList. If a new DataSource is empty, the control appears to keep the rows of the old DataSource. While looking for a solution I stumbled upon this[^] gem: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load repeater.DataBind() Dim record As String = repeater.Items.Count.ToString If record = 0 Then repeater.Visible = False Else repeater.Visible = True End If End Sub

      P Online
      P Online
      PIEBALDconsult
      wrote on last edited by
      #2

      Wow! A three-fer! :laugh:

      J 1 Reply Last reply
      0
      • B Brady Kelly

        There seems to be a problem with the ASP.NET data repeating controls, Repeater and DataList. If a new DataSource is empty, the control appears to keep the rows of the old DataSource. While looking for a solution I stumbled upon this[^] gem: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load repeater.DataBind() Dim record As String = repeater.Items.Count.ToString If record = 0 Then repeater.Visible = False Else repeater.Visible = True End If End Sub

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        I see this so much, it's sad :(

        xacc.ide - now with IronScheme support
        IronScheme - 1.0 alpha 1 out now

        1 Reply Last reply
        0
        • B Brady Kelly

          There seems to be a problem with the ASP.NET data repeating controls, Repeater and DataList. If a new DataSource is empty, the control appears to keep the rows of the old DataSource. While looking for a solution I stumbled upon this[^] gem: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load repeater.DataBind() Dim record As String = repeater.Items.Count.ToString If record = 0 Then repeater.Visible = False Else repeater.Visible = True End If End Sub

          P Online
          P Online
          PIEBALDconsult
          wrote on last edited by
          #4

          I met an int once... he was looking for the intwives.

          1 Reply Last reply
          0
          • B Brady Kelly

            There seems to be a problem with the ASP.NET data repeating controls, Repeater and DataList. If a new DataSource is empty, the control appears to keep the rows of the old DataSource. While looking for a solution I stumbled upon this[^] gem: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load repeater.DataBind() Dim record As String = repeater.Items.Count.ToString If record = 0 Then repeater.Visible = False Else repeater.Visible = True End If End Sub

            S Offline
            S Offline
            StM0n
            wrote on last edited by
            #5

            that's art :-\

            (yes|no|maybe)*

            1 Reply Last reply
            0
            • P PIEBALDconsult

              Wow! A three-fer! :laugh:

              J Offline
              J Offline
              Jason Lepack LeppyR64
              wrote on last edited by
              #6

              What's a three fer? ;)

              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