Look for the properties exposed in the
context.Response
of the handler in
ProcessRequest
method.
Follow the article below of how to add a querystring to current URL:
ASP.NET ASHX Handler Tutorial[
^]
This would help you understand how it works and what are the possibilities to work with URL.