I would say that HyperLink refers to a specific URL to store the necessary session data, then use it Response.Redirectto redirect to the next page after saving the information.
The HyperLink URL will point to your server so that you can save the information, and then you will use the redirection to tell the user the correct endpoint after storing the necessary data.
Example
- URL-address HyperLink indicates
~/yourpage.aspx?state=NY,target="_blank" - The server responds to the URL and validates the request.
- If the query string exists, save the data (
if (Request.QueryString["state"] != null) Session["state"] = Request.QueryString["state"]) - Redirect user to appropriate url (
Response.Redirect("http://www.ny.gov"))
If the data is confidential, then you would like to use the methods LinkButtonspecified in other answers. Opening a new tab is difficult, so you will probably have to write some Javascript, as indicated by @andleer, since I do not believe that there is an easy way to open a new window from the server side otherwise.