Skip to main content

Posts

HowTo: Convert a given number into its ordinal value in VB.NET

Found this code from  stackoverflow  and made some small change to it,  this will convert any given number to its ordinal value. Example: Convert(1) will return 1st Convert(11) will return 11th Convert(12) will return 12th Convert(23) will return 23rd Public Function Convert(ByVal number As Integer) As String         Dim ones As Integer = number Mod 10         Dim tens As Integer = Math.Floor(number / 10) / 10         If (number > 10 And number < 14) Then             Return number.ToString() & "th"         Else             Select Case ones                 Case 1                     Return number.ToString() & "st"                 Case 2             ...

Dotnetnuke Messages and Notifications links not working properly

It take me a week to figure this out, had to look into the source code,  In our case the issue occur because we have a custom User Profile page and the Message Center page in not a child of that page. We just move the messages page under profile page and everything works properly.  Also make sure you clear cache under host settings. I ask a question about this on DNN Q&A

DotNetNuke and Apache Solr in action

All search functionality of  zeekbeek.com is powered by SOLR. Also we are using  jQuery Waypoints  for infinite scroll of search results and  jQuery BBQ  for handing #hash.