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

  • Home
  • SEARCH
  • 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 468517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:41:23+00:00 2026-05-12T23:41:23+00:00

I have a variable with hyper links (www.wow.com) like this. I have to pass

  • 0

I have a variable with hyper links (www.wow.com) like this. I have to pass this value to <a href=""> here in this href tag. My real task is to open this hyper links which will change time by time in my variable, in new tabs. For that I have used javascript in my asp.net web application with c#.

I have used window.location function in js, but its not working correctly. Does any one have an idea to open that hyper links in new window or tabs.

The hyper link value should change as per that variable and should open in new tabs. Can anyone help me to do this

below is a code snippet from my actual code

<td class="emails-table-cell" colspan="2">
        <asp:Literal ID="BodyLiteral" runat="server" />
        <%
            // *** Write to file ***

            // Specify file, instructions, and privelegdes
            FileStream file = new FileStream("test.html", FileMode.OpenOrCreate, FileAccess.Write);

            // Create a new stream to write to the file
            StreamWriter sw = new StreamWriter(file);

            // Write a string to the file
            sw.Write(BodyLiteral.Text);

            // Close StreamWriter
            sw.Close();

            // Close file
            file.Close();

            var text = File.ReadAllText(@"d:\test.html");

            Regex regex = new Regex("href\\s*=\\s*\"([^\"]*)\"", RegexOptions.IgnoreCase);
            MatchCollection matches = regex.Matches(text);
            //Response.Write(matches);
            foreach (Match match in matches)
            {
                Response.Write(match.Groups[1]);                    
                %>
<%
            }
%>

I’m getting this from my email that is gmail. I have accessed my gmail through my web application. Then I have accessed my mail contents. From that mail contents I have to fetch hyperlinks and show all the links in separate tabs that is the output i’m looking for.

  • 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-12T23:41:23+00:00Added an answer on May 12, 2026 at 11:41 pm

    The basic HTML method of forcing a link to open in a new window is to add a target=”_blank” value.

    <a href="http://www.wow.com/" target="_blank">Go to WOW</a>
    

    Can you provide a code sample of what you’ve got so far? It will make it easier to assist.

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

Sidebar

Related Questions

I have a variable of type Hashmap <String,Integer >. In this, the Integer value
I have a variable that is built in loop. Something like: $str = ;
I have a variable of type Number, and i like to obtain the sign
I have a variable that contains a 4 byte, network-order IPv4 address (this was
If I have variable of type IEnumerable<List<string>> is there a LINQ statement or lambda
I have a variable of type Dynamic and I know for sure one of
I have a variable last_login and want to output a message if the last
If I have a variable in C# that needs to be checked to determine
Suppose I have a variable of type Int = 08, how can I convert
I have a UITableView cell that is going to have a variable size depending

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.