Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7024157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:48:13+00:00 2026-05-27T23:48:13+00:00

I have a strange situation. I have a website where hyperlinks are dynamically generated

  • 0

I have a strange situation. I have a website where hyperlinks are dynamically generated (as user controls) which have the target attribute set to _blank as I need it to open in a new window. Due to the nature of what the new page is displaying I need to audit when the user clicks on it. I already have auditing functionality set up so I am looking for a way to run code before the link opens the new page.

If it was in internal page on the same site i could simply have the hyperlink as a command button which runs the audit code and then does a Response.Redirect().

I don’t have any control over the target pages because they are on a different website. I would be interested to her how others have done this and whether it’s possible to do it in the way that I’ve explained!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:48:14+00:00Added an answer on May 27, 2026 at 11:48 pm

    Change your links to be a handler on your site that does the auditing and then redirects. So your links would be something like

    <a href="/MyAuditingHandler.ashx?targetUrl=http://www.externalsite.com" target="_blank"></a>
    

    Your handler audits, reads the targetUrl parameter and then redirects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very strange situation. I have a large set of records to
I have a strange situation using asp ajax chart controls. I have an application
I have a strange situation which I hope someone can shed some light on.
I guess this is strange situation. I have a results table which contain 100k
I have a strange situation which appears to indicate a GORM cacheing problem //begin
I'm experiencing this strange situation. I have a UITableView where, when the user selects
I have run into a strange situation where I need to float two elements.
I have the following strange situation here I need some help with: I am
I have a strange situation where i have added a reference to Microsoft.SqlServer.Smo Microsoft.SqlServer.ConnectionInfo
I have a strange situation. I have a fairly memory intense process (image processing)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.