I'm using a datapager of mine and for some reason it won't work on the IIS server, but it works in my local.
Ask me what you want to know and i'll give you more details... :)
This is the event i'm talking about:
Protected Sub paging_load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
Me.DataPager2.PageSize = Bedrijf.Info("overzicht_panden")
MyBase.loadPanden("picture_0_filetn", "picture_0_filetn_width", "picture_0_filetn_height", "picture_0_file", "picture_0_file_width", "picture_0_file_height", "[transaction]", "transactionValue", "date_created", "price_changed", "price_visible", "cityValue", "description", "price", "fortissimmo", "typeValue", "title")
If lvPanden.DataSource.rows.count > 0 Then
AddHandler lvPanden.ItemDataBound, AddressOf lvPanden_ItemDataBound
lvPanden.DataBind()
Else
lblNoProperties.Text = Vertaling.Tekst("nofound")
End If
inner_header() 'toChange
End If
If lvPanden.DataSource IsNot Nothing Then
If dbInt(lvPanden.DataSource.rows.count) <= Bedrijf.Info("overzicht_panden") Then
divPaging.Visible = False
End If
Else
divPaging.Visible = False
End If
End Sub
I don't think it is something else. I'd appreciate any help, because i can't find my problem :s
The problem is, when i go to "page 2", the items won't display, only the page 1 items are displayed. But on local execution, everything works fine (pages change, number changes, ... ...)
My best guess it has something to do with the postback - addHandler and the event load. But i tried something else and it didn't seem to work (do it in the event init)
Protected Sub lvPanden_PagePropertiesChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles lvPanden.PagePropertiesChanged
lvPanden.DataBind()
End Sub