I want to pass \'#\' to the query string like ?page.aspx?someParam=1234#5.
?page.aspx?someParam=1234#5
Please use Server.UrlEncode on your querystring that will parse the '#' for you
Server.UrlEncode