I want to pass \'#\' to the query string like ?page.aspx?someParam=1234#5.
?page.aspx?someParam=1234#5
URL-encode the sharp character: %23.
%23