Int? What's "int"?
-
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
-
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
Wow! A three-fer! :laugh:
-
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
-
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
I met an int once... he was looking for the intwives.
-
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
-
Wow! A three-fer! :laugh:
What's a three fer? ;)